Merge branch 'pure' of /srv/lav/Projects/WINE/eterwine into vanilla
authorVitaly Lipatov <lav@etersoft.ru>
Sat, 24 Oct 2009 18:29:44 +0000 (22:29 +0400)
committerVitaly Lipatov <lav@etersoft.ru>
Sat, 24 Oct 2009 18:29:44 +0000 (22:29 +0400)
Conflicts:
configure

1  2 
Make.rules.in
configure
configure.ac
dlls/gdi32/Makefile.in
dlls/gdi32/freetype.c
dlls/rpcrt4/rpc_message.c

diff --cc Make.rules.in
Simple merge
diff --cc configure
index 73377bb9f28b6e3161516ea9fffca74d4fdda2d1,906bc679d3551d9c4e980ffade50043a947ae01b..45b0af699d326d7ea3ab7d82ef533eb951c28c38
+++ b/configure
@@@ -1,6 -1,6 +1,6 @@@
  #! /bin/sh
  # Guess values for system-dependent variables and create Makefiles.
- # Generated by GNU Autoconf 2.63 for Wine 1.1.26.
 -# Generated by GNU Autoconf 2.64 for Wine 1.1.32.
++# Generated by GNU Autoconf 2.63 for Wine 1.1.32.
  #
  # Report bugs to <wine-devel@winehq.org>.
  #
@@@ -596,9 -549,10 +596,9 @@@ SHELL=${CONFIG_SHELL-/bin/sh
  # Identity of this package.
  PACKAGE_NAME='Wine'
  PACKAGE_TARNAME='wine'
- PACKAGE_VERSION='1.1.26'
- PACKAGE_STRING='Wine 1.1.26'
+ PACKAGE_VERSION='1.1.32'
+ PACKAGE_STRING='Wine 1.1.32'
  PACKAGE_BUGREPORT='wine-devel@winehq.org'
 -PACKAGE_URL='http://www.winehq.org'
  
  ac_unique_file="server/atom.c"
  # Factoring default headers for most tests.
@@@ -661,9 -617,9 +663,10 @@@ LDPAT
  BUILTINFLAG
  EXTRACFLAGS
  LIBKSTAT
+ LIBMPG123
  PNGINCL
  FONTCONFIGINCL
 +FONTCONFIGLIBS
  CUPSINCL
  AUDIOIOLIBS
  ALSALIBS
  test -n "$ac_init_help" && exit $ac_status
  if $ac_init_version; then
    cat <<\_ACEOF
- Wine configure 1.1.26
+ Wine configure 1.1.32
 -generated by GNU Autoconf 2.64
 +generated by GNU Autoconf 2.63
  
 -Copyright (C) 2009 Free Software Foundation, Inc.
 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  This configure script is free software; the Free Software Foundation
  gives unlimited permission to copy, distribute and modify it.
  _ACEOF
    exit
  fi
 +cat >config.log <<_ACEOF
 +This file contains any messages produced by compilers while
 +running configure, to aid debugging if configure makes a mistake.
  
- It was created by Wine $as_me 1.1.26, which was
 -## ------------------------ ##
 -## Autoconf initialization. ##
 -## ------------------------ ##
 -
 -# ac_fn_c_try_compile LINENO
 -# --------------------------
 -# Try to compile conftest.$ac_ext, and return whether this succeeded.
 -ac_fn_c_try_compile ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  rm -f conftest.$ac_objext
 -  if { { ac_try="$ac_compile"
 -case "(($ac_try" in
 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 -  *) ac_try_echo=$ac_try;;
 -esac
 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 -$as_echo "$ac_try_echo"; } >&5
 -  (eval "$ac_compile") 2>conftest.err
 -  ac_status=$?
 -  if test -s conftest.err; then
 -    grep -v '^ *+' conftest.err >conftest.er1
 -    cat conftest.er1 >&5
 -    mv -f conftest.er1 conftest.err
 -  fi
 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 -  test $ac_status = 0; } && {
 -       test -z "$ac_c_werror_flag" ||
 -       test ! -s conftest.err
 -       } && test -s conftest.$ac_objext; then :
 -  ac_retval=0
 -else
 -  $as_echo "$as_me: failed program was:" >&5
 -sed 's/^/| /' conftest.$ac_ext >&5
 -
 -      ac_retval=1
 -fi
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -  return $ac_retval
++It was created by Wine $as_me 1.1.32, which was
 +generated by GNU Autoconf 2.63.  Invocation command line was
  
 -} # ac_fn_c_try_compile
 +  $ $0 $@
  
 -# ac_fn_cxx_try_compile LINENO
 -# ----------------------------
 -# Try to compile conftest.$ac_ext, and return whether this succeeded.
 -ac_fn_cxx_try_compile ()
 +_ACEOF
 +exec 5>>config.log
  {
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  rm -f conftest.$ac_objext
 -  if { { ac_try="$ac_compile"
 -case "(($ac_try" in
 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 -  *) ac_try_echo=$ac_try;;
 -esac
 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 -$as_echo "$ac_try_echo"; } >&5
 -  (eval "$ac_compile") 2>conftest.err
 -  ac_status=$?
 -  if test -s conftest.err; then
 -    grep -v '^ *+' conftest.err >conftest.er1
 -    cat conftest.er1 >&5
 -    mv -f conftest.er1 conftest.err
 -  fi
 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 -  test $ac_status = 0; } && {
 -       test -z "$ac_cxx_werror_flag" ||
 -       test ! -s conftest.err
 -       } && test -s conftest.$ac_objext; then :
 -  ac_retval=0
 -else
 -  $as_echo "$as_me: failed program was:" >&5
 -sed 's/^/| /' conftest.$ac_ext >&5
 +cat <<_ASUNAME
 +## --------- ##
 +## Platform. ##
 +## --------- ##
  
 -      ac_retval=1
 -fi
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -  return $ac_retval
 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  
 -} # ac_fn_cxx_try_compile
 -
 -# ac_fn_c_try_link LINENO
 -# -----------------------
 -# Try to link conftest.$ac_ext, and return whether this succeeded.
 -ac_fn_c_try_link ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  rm -f conftest.$ac_objext conftest$ac_exeext
 -  if { { ac_try="$ac_link"
 -case "(($ac_try" in
 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 -  *) ac_try_echo=$ac_try;;
 -esac
 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 -$as_echo "$ac_try_echo"; } >&5
 -  (eval "$ac_link") 2>conftest.err
 -  ac_status=$?
 -  if test -s conftest.err; then
 -    grep -v '^ *+' conftest.err >conftest.er1
 -    cat conftest.er1 >&5
 -    mv -f conftest.er1 conftest.err
 -  fi
 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 -  test $ac_status = 0; } && {
 -       test -z "$ac_c_werror_flag" ||
 -       test ! -s conftest.err
 -       } && test -s conftest$ac_exeext && {
 -       test "$cross_compiling" = yes ||
 -       $as_test_x conftest$ac_exeext
 -       }; then :
 -  ac_retval=0
 -else
 -  $as_echo "$as_me: failed program was:" >&5
 -sed 's/^/| /' conftest.$ac_ext >&5
 -
 -      ac_retval=1
 -fi
 -  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 -  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 -  # interfere with the next link command; also delete a directory that is
 -  # left behind by Apple's compiler.  We do this before executing the actions.
 -  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -  return $ac_retval
 -
 -} # ac_fn_c_try_link
 -
 -# ac_fn_c_try_cpp LINENO
 -# ----------------------
 -# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 -ac_fn_c_try_cpp ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  if { { ac_try="$ac_cpp conftest.$ac_ext"
 -case "(($ac_try" in
 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 -  *) ac_try_echo=$ac_try;;
 -esac
 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 -$as_echo "$ac_try_echo"; } >&5
 -  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 -  ac_status=$?
 -  if test -s conftest.err; then
 -    grep -v '^ *+' conftest.err >conftest.er1
 -    cat conftest.er1 >&5
 -    mv -f conftest.er1 conftest.err
 -  fi
 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 -  test $ac_status = 0; } >/dev/null && {
 -       test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 -       test ! -s conftest.err
 -       }; then :
 -  ac_retval=0
 -else
 -  $as_echo "$as_me: failed program was:" >&5
 -sed 's/^/| /' conftest.$ac_ext >&5
 -
 -    ac_retval=1
 -fi
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -  return $ac_retval
 -
 -} # ac_fn_c_try_cpp
 -
 -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 -# -------------------------------------------------------
 -# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 -# the include files in INCLUDES and setting the cache variable VAR
 -# accordingly.
 -ac_fn_c_check_header_mongrel ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 -$as_echo_n "checking for $2... " >&6; }
 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 -  $as_echo_n "(cached) " >&6
 -fi
 -eval ac_res=\$$3
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 -$as_echo "$ac_res" >&6; }
 -else
 -  # Is the header compilable?
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 -$as_echo_n "checking $2 usability... " >&6; }
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 -$4
 -#include <$2>
 -_ACEOF
 -if ac_fn_c_try_compile "$LINENO"; then :
 -  ac_header_compiler=yes
 -else
 -  ac_header_compiler=no
 -fi
 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 -$as_echo "$ac_header_compiler" >&6; }
 -
 -# Is the header present?
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 -$as_echo_n "checking $2 presence... " >&6; }
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 -#include <$2>
 -_ACEOF
 -if ac_fn_c_try_cpp "$LINENO"; then :
 -  ac_header_preproc=yes
 -else
 -  ac_header_preproc=no
 -fi
 -rm -f conftest.err conftest.$ac_ext
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 -$as_echo "$ac_header_preproc" >&6; }
 -
 -# So?  What about this header?
 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 -  yes:no: )
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 -    ;;
 -  no:yes:* )
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 -$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 -$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 -( cat <<\_ASBOX
 -## ------------------------------------ ##
 -## Report this to wine-devel@winehq.org ##
 -## ------------------------------------ ##
 -_ASBOX
 -     ) | sed "s/^/$as_me: WARNING:     /" >&2
 -    ;;
 -esac
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 -$as_echo_n "checking for $2... " >&6; }
 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 -  $as_echo_n "(cached) " >&6
 -else
 -  eval "$3=\$ac_header_compiler"
 -fi
 -eval ac_res=\$$3
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 -$as_echo "$ac_res" >&6; }
 -fi
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -
 -} # ac_fn_c_check_header_mongrel
 -
 -# ac_fn_c_try_run LINENO
 -# ----------------------
 -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 -# that executables *can* be run.
 -ac_fn_c_try_run ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  if { { ac_try="$ac_link"
 -case "(($ac_try" in
 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 -  *) ac_try_echo=$ac_try;;
 -esac
 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 -$as_echo "$ac_try_echo"; } >&5
 -  (eval "$ac_link") 2>&5
 -  ac_status=$?
 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 -  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 -  { { case "(($ac_try" in
 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 -  *) ac_try_echo=$ac_try;;
 -esac
 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 -$as_echo "$ac_try_echo"; } >&5
 -  (eval "$ac_try") 2>&5
 -  ac_status=$?
 -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 -  test $ac_status = 0; }; }; then :
 -  ac_retval=0
 -else
 -  $as_echo "$as_me: program exited with status $ac_status" >&5
 -       $as_echo "$as_me: failed program was:" >&5
 -sed 's/^/| /' conftest.$ac_ext >&5
 -
 -       ac_retval=$ac_status
 -fi
 -  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -  return $ac_retval
 -
 -} # ac_fn_c_try_run
 -
 -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 -# -------------------------------------------------------
 -# Tests whether HEADER exists and can be compiled using the include files in
 -# INCLUDES, setting the cache variable VAR accordingly.
 -ac_fn_c_check_header_compile ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 -$as_echo_n "checking for $2... " >&6; }
 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 -  $as_echo_n "(cached) " >&6
 -else
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 -$4
 -#include <$2>
 -_ACEOF
 -if ac_fn_c_try_compile "$LINENO"; then :
 -  eval "$3=yes"
 -else
 -  eval "$3=no"
 -fi
 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -fi
 -eval ac_res=\$$3
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 -$as_echo "$ac_res" >&6; }
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -
 -} # ac_fn_c_check_header_compile
 -
 -# ac_fn_c_check_func LINENO FUNC VAR
 -# ----------------------------------
 -# Tests whether FUNC exists, setting the cache variable VAR accordingly
 -ac_fn_c_check_func ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 -$as_echo_n "checking for $2... " >&6; }
 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 -  $as_echo_n "(cached) " >&6
 -else
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 -/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 -#define $2 innocuous_$2
 -
 -/* System header to define __stub macros and hopefully few prototypes,
 -    which can conflict with char $2 (); below.
 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 -    <limits.h> exists even on freestanding compilers.  */
 -
 -#ifdef __STDC__
 -# include <limits.h>
 -#else
 -# include <assert.h>
 -#endif
 -
 -#undef $2
 -
 -/* Override any GCC internal prototype to avoid an error.
 -   Use char because int might match the return type of a GCC
 -   builtin and then its argument prototype would still apply.  */
 -#ifdef __cplusplus
 -extern "C"
 -#endif
 -char $2 ();
 -/* The GNU C library defines this for functions which it implements
 -    to always fail with ENOSYS.  Some functions are actually named
 -    something starting with __ and the normal name is an alias.  */
 -#if defined __stub_$2 || defined __stub___$2
 -choke me
 -#endif
 -
 -int
 -main ()
 -{
 -return $2 ();
 -  ;
 -  return 0;
 -}
 -_ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 -  eval "$3=yes"
 -else
 -  eval "$3=no"
 -fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 -fi
 -eval ac_res=\$$3
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 -$as_echo "$ac_res" >&6; }
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -
 -} # ac_fn_c_check_func
 -
 -# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 -# ----------------------------------------------------
 -# Tries to find if the field MEMBER exists in type AGGR, after including
 -# INCLUDES, setting cache variable VAR accordingly.
 -ac_fn_c_check_member ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 -$as_echo_n "checking for $2.$3... " >&6; }
 -if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
 -  $as_echo_n "(cached) " >&6
 -else
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 -$5
 -int
 -main ()
 -{
 -static $2 ac_aggr;
 -if (ac_aggr.$3)
 -return 0;
 -  ;
 -  return 0;
 -}
 -_ACEOF
 -if ac_fn_c_try_compile "$LINENO"; then :
 -  eval "$4=yes"
 -else
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 -$5
 -int
 -main ()
 -{
 -static $2 ac_aggr;
 -if (sizeof ac_aggr.$3)
 -return 0;
 -  ;
 -  return 0;
 -}
 -_ACEOF
 -if ac_fn_c_try_compile "$LINENO"; then :
 -  eval "$4=yes"
 -else
 -  eval "$4=no"
 -fi
 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -fi
 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -fi
 -eval ac_res=\$$4
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 -$as_echo "$ac_res" >&6; }
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -
 -} # ac_fn_c_check_member
 -
 -# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 -# -------------------------------------------
 -# Tests whether TYPE exists after having included INCLUDES, setting cache
 -# variable VAR accordingly.
 -ac_fn_c_check_type ()
 -{
 -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 -$as_echo_n "checking for $2... " >&6; }
 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 -  $as_echo_n "(cached) " >&6
 -else
 -  eval "$3=no"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 -$4
 -int
 -main ()
 -{
 -if (sizeof ($2))
 -       return 0;
 -  ;
 -  return 0;
 -}
 -_ACEOF
 -if ac_fn_c_try_compile "$LINENO"; then :
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 -$4
 -int
 -main ()
 -{
 -if (sizeof (($2)))
 -          return 0;
 -  ;
 -  return 0;
 -}
 -_ACEOF
 -if ac_fn_c_try_compile "$LINENO"; then :
 -
 -else
 -  eval "$3=yes"
 -fi
 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -fi
 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -fi
 -eval ac_res=\$$3
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 -$as_echo "$ac_res" >&6; }
 -  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 -
 -} # ac_fn_c_check_type
 -cat >config.log <<_ACEOF
 -This file contains any messages produced by compilers while
 -running configure, to aid debugging if configure makes a mistake.
 -
 -It was created by Wine $as_me 1.1.32, which was
 -generated by GNU Autoconf 2.64.  Invocation command line was
 -
 -  $ $0 $@
 -
 -_ACEOF
 -exec 5>>config.log
 -{
 -cat <<_ASUNAME
 -## --------- ##
 -## Platform. ##
 -## --------- ##
 -
 -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 -uname -m = `(uname -m) 2>/dev/null || echo unknown`
 -uname -r = `(uname -r) 2>/dev/null || echo unknown`
 -uname -s = `(uname -s) 2>/dev/null || echo unknown`
 -uname -v = `(uname -v) 2>/dev/null || echo unknown`
 -
 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 -/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  
  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
@@@ -2142,8 -2578,14 +2157,14 @@@ if test "${with_gnutls+set}" = set; the
  fi
  
  
 -if test "${with_gsm+set}" = set; then :
+ # Check whether --with-gsm was given.
++if test "${with_gsm+set}" = set; then
+   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
+ fi
  # Check whether --with-hal was given.
 -if test "${with_hal+set}" = set; then :
 +if test "${with_hal+set}" = set; then
    withval=$with_hal;
  fi
  
@@@ -2166,14 -2608,26 +2187,26 @@@ if test "${with_ldap+set}" = set; the
  fi
  
  
 -if test "${with_mpg123+set}" = set; then :
+ # Check whether --with-mpg123 was given.
++if test "${with_mpg123+set}" = set; then
+   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
+ fi
  # Check whether --with-nas was given.
 -if test "${with_nas+set}" = set; then :
 +if test "${with_nas+set}" = set; then
    withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
  fi
  
  
 -if test "${with_openal+set}" = set; then :
+ # Check whether --with-openal was given.
++if test "${with_openal+set}" = set; then
+   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
+ fi
  # Check whether --with-opengl was given.
 -if test "${with_opengl+set}" = set; then :
 +if test "${with_opengl+set}" = set; then
    withval=$with_opengl;
  fi
  
  
  
  # Check whether --with-xxf86vm was given.
 -if test "${with_xxf86vm+set}" = set; then :
 +if test "${with_xxf86vm+set}" = set; then
-   withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; fi
+   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
  fi
  
  
@@@ -2281,15 -2735,19 +2314,21 @@@ if test "${with_wine_tools+set}" = set
  fi
  
  
 -if test "${with_wine64+set}" = set; then :
+ # Check whether --with-wine64 was given.
++if test "${with_wine64+set}" = set; then
+   withval=$with_wine64;
+ fi
  # Make sure we can run config.sub.
  $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 -  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 +  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 +   { (exit 1); exit 1; }; }
  
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 +{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  $as_echo_n "checking build system type... " >&6; }
 -if test "${ac_cv_build+set}" = set; then :
 +if test "${ac_cv_build+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
    ac_build_alias=$build_alias
      enable_w32skrnl=${enable_w32skrnl:-no}
      enable_winedos=${enable_winedos:-no}
      enable_winevdm=${enable_winevdm:-no}
 -        as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
 ---enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
+     enable_wow32=${enable_wow32:-no}
+ fi
+ if test -n "$with_wine64"
+ then
+     if test "x$enable_win64" = "xyes"
+     then
++        { { $as_echo "$as_me:$LINENO: error: --enable-win64 and --with-wine64 are mutually exclusive.
++--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." >&5
++$as_echo "$as_me: error: --enable-win64 and --with-wine64 are mutually exclusive.
++--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." >&2;}
++   { (exit 1); exit 1; }; }
+     fi
+     WOW64_DISABLE=\#
+     enable_fonts=${enable_fonts:-no}
+     enable_include=${enable_include:-no}
+     enable_server=${enable_server:-no}
+     enable_tools=${enable_tools:-no}
+     enable_wineboot=${enable_wineboot:-no}
+     enable_winedbg=${enable_winedbg:-no}
+     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
  fi
  
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
 +{ $as_echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
  $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
 -if test "${wine_cv_toolsdir+set}" = set; then :
 +if test "${wine_cv_toolsdir+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
-   if test -z "$with_wine_tools"; then
+   wine_cv_toolsdir="$with_wine_tools"
+    if test -z "$with_wine_tools"; then
       if test "$cross_compiling" = "yes"; then
 -       as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
 +       { { $as_echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
 +$as_echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
 +   { (exit 1); exit 1; }; }
-      else
-        wine_cv_toolsdir="\$(TOPOBJDIR)"
+      elif test -n "$with_wine64"; then
+        wine_cv_toolsdir="$with_wine64"
       fi
-    elif test -d "$with_wine_tools/tools/winebuild"; then
-      case $with_wine_tools in
-        /*) wine_cv_toolsdir="$with_wine_tools" ;;
-        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
+    fi
+    if test -z "$wine_cv_toolsdir"; then
+      wine_cv_toolsdir="\$(TOPOBJDIR)"
+    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
+      case "$wine_cv_toolsdir" in
+        /*) ;;
+        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
       esac
     else
-      { { $as_echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
- $as_echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
 -     as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
++     { { $as_echo "$as_me:$LINENO: error: could not find Wine tools in $wine_cv_toolsdir" >&5
++$as_echo "$as_me: error: could not find Wine tools in $wine_cv_toolsdir" >&2;}
 +   { (exit 1); exit 1; }; }
     fi
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
 +{ $as_echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
  $as_echo "$wine_cv_toolsdir" >&6; }
  TOOLSDIR=$wine_cv_toolsdir
  
@@@ -5130,6 -5192,205 +5200,363 @@@ OPENGL_LIBS="
  
  
  
 -if test "${enable_largefile+set}" = set; then :
+ # Check whether --enable-largefile was given.
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
++if test "${enable_largefile+set}" = set; then
+   enableval=$enable_largefile;
+ fi
+ if test "$enable_largefile" != no; then
 -if test "${ac_cv_sys_largefile_CC+set}" = set; then :
++  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
+ $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 -       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++if test "${ac_cv_sys_largefile_CC+set}" = set; then
+   $as_echo_n "(cached) " >&6
+ else
+   ac_cv_sys_largefile_CC=no
+      if test "$GCC" != yes; then
+        ac_save_CC=$CC
+        while :; do
+        # IRIX 6.2 and later do not support large files by default,
+        # so use the C compiler's -n32 option if that helps.
 -       if ac_fn_c_try_compile "$LINENO"; then :
++       cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <sys/types.h>
+  /* Check that off_t can represent 2**63 - 1 correctly.
+     We can't simply define LARGE_OFF_T to be 9223372036854775807,
+     since some C++ compilers masquerading as C compilers
+     incorrectly reject 9223372036854775807.  */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+                      && LARGE_OFF_T % 2147483647 == 1)
+                     ? 1 : -1];
+ int
+ main ()
+ {
+   ;
+   return 0;
+ }
+ _ACEOF
 -       if ac_fn_c_try_compile "$LINENO"; then :
++       rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
+   break
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++
+ fi
++
+ rm -f core conftest.err conftest.$ac_objext
+        CC="$CC -n32"
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
++       rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
+   ac_cv_sys_largefile_CC=' -n32'; break
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++
+ fi
++
+ rm -f core conftest.err conftest.$ac_objext
+        break
+        done
+        CC=$ac_save_CC
+        rm -f conftest.$ac_ext
+     fi
+ fi
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
+ $as_echo "$ac_cv_sys_largefile_CC" >&6; }
+   if test "$ac_cv_sys_largefile_CC" != no; then
+     CC=$CC$ac_cv_sys_largefile_CC
+   fi
 -if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
++  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
+ $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++if test "${ac_cv_sys_file_offset_bits+set}" = set; then
+   $as_echo_n "(cached) " >&6
+ else
+   while :; do
 -if ac_fn_c_try_compile "$LINENO"; then :
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <sys/types.h>
+  /* Check that off_t can represent 2**63 - 1 correctly.
+     We can't simply define LARGE_OFF_T to be 9223372036854775807,
+     since some C++ compilers masquerading as C compilers
+     incorrectly reject 9223372036854775807.  */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+                      && LARGE_OFF_T % 2147483647 == 1)
+                     ? 1 : -1];
+ int
+ main ()
+ {
+   ;
+   return 0;
+ }
+ _ACEOF
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
+   ac_cv_sys_file_offset_bits=no; break
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++
+ fi
++
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -if ac_fn_c_try_compile "$LINENO"; then :
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #define _FILE_OFFSET_BITS 64
+ #include <sys/types.h>
+  /* Check that off_t can represent 2**63 - 1 correctly.
+     We can't simply define LARGE_OFF_T to be 9223372036854775807,
+     since some C++ compilers masquerading as C compilers
+     incorrectly reject 9223372036854775807.  */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+                      && LARGE_OFF_T % 2147483647 == 1)
+                     ? 1 : -1];
+ int
+ main ()
+ {
+   ;
+   return 0;
+ }
+ _ACEOF
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
+   ac_cv_sys_file_offset_bits=64; break
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++
+ fi
++
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+   ac_cv_sys_file_offset_bits=unknown
+   break
+ done
+ fi
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
+ $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
+ case $ac_cv_sys_file_offset_bits in #(
+   no | unknown) ;;
+   *)
+ cat >>confdefs.h <<_ACEOF
+ #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
+ _ACEOF
+ ;;
+ esac
+ rm -rf conftest*
+   if test $ac_cv_sys_file_offset_bits = unknown; then
 -if test "${ac_cv_sys_large_files+set}" = set; then :
++    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
+ $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++if test "${ac_cv_sys_large_files+set}" = set; then
+   $as_echo_n "(cached) " >&6
+ else
+   while :; do
 -if ac_fn_c_try_compile "$LINENO"; then :
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <sys/types.h>
+  /* Check that off_t can represent 2**63 - 1 correctly.
+     We can't simply define LARGE_OFF_T to be 9223372036854775807,
+     since some C++ compilers masquerading as C compilers
+     incorrectly reject 9223372036854775807.  */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+                      && LARGE_OFF_T % 2147483647 == 1)
+                     ? 1 : -1];
+ int
+ main ()
+ {
+   ;
+   return 0;
+ }
+ _ACEOF
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
+   ac_cv_sys_large_files=no; break
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++
+ fi
++
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -if ac_fn_c_try_compile "$LINENO"; then :
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #define _LARGE_FILES 1
+ #include <sys/types.h>
+  /* Check that off_t can represent 2**63 - 1 correctly.
+     We can't simply define LARGE_OFF_T to be 9223372036854775807,
+     since some C++ compilers masquerading as C compilers
+     incorrectly reject 9223372036854775807.  */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+                      && LARGE_OFF_T % 2147483647 == 1)
+                     ? 1 : -1];
+ int
+ main ()
+ {
+   ;
+   return 0;
+ }
+ _ACEOF
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
+   ac_cv_sys_large_files=1; break
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++
+ fi
++
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+   ac_cv_sys_large_files=unknown
+   break
+ done
+ fi
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
+ $as_echo "$ac_cv_sys_large_files" >&6; }
+ case $ac_cv_sys_large_files in #(
+   no | unknown) ;;
+   *)
+ cat >>confdefs.h <<_ACEOF
+ #define _LARGE_FILES $ac_cv_sys_large_files
+ _ACEOF
+ ;;
+ esac
+ rm -rf conftest*
+   fi
+ fi
  ac_ext=c
  ac_cpp='$CPP $CPPFLAGS'
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  done
  
  
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
++
++
++
++
++
 +
 +
 +
 +
 +
 +
  for ac_header in \
+       AL/al.h \
        AudioUnit/AudioUnit.h \
        Carbon/Carbon.h \
        CoreAudio/CoreAudio.h \
  done
  
  
- for ac_header in linux/ipx.h
 +
 -do :
 -  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
++
+ for ac_header in linux/ipx.h linux/irda.h
 +do
 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 +$as_echo_n "checking for $ac_header... " >&6; }
 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
       #ifdef HAVE_ASM_TYPES_H
       # include <asm/types.h>
       #endif
@@@ -7597,184 -6606,74 +8041,163 @@@ if test "${ac_cv_cflags__fPIC__shared__
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
  else
 -  ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
  $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
 -if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
 +if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
    LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
  else
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
 +  { $as_echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
  $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
 -if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
 +if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 -  ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
  else
 -  ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
  $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
 -if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
 +if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
    LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
  fi
 +
  fi
  
 -      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
 +
 +      { $as_echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
  $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
 -if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
 +if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
  else
 -  ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
  $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
 -if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
 +if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
    LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
  fi
  
@@@ -7786,58 -6684,22 +8209,51 @@@ if test "${ac_cv_cflags__fPIC__shared__
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
  else
 -  ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
  $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
 -if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
 +if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
    LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
  fi
  
@@@ -7850,122 -6711,49 +8266,108 @@@ if test "${ac_cv_cflags__fPIC__shared__
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
  else
 -  ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
  $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
 -if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
 +if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
    LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
  fi
 +
        rm -f conftest.map
  
 -      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
 +      { $as_echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
  $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
 -if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
 +if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    ac_cv_cflags__fPIC__Wl___export_dynamic=yes
  else
 -  ac_cv_cflags__fPIC__Wl___export_dynamic=no
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__fPIC__Wl___export_dynamic=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
  $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
 -if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
 +if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
    LDEXECFLAGS="-Wl,--export-dynamic"
  
  fi
@@@ -7979,61 -6766,23 +8381,54 @@@ if { as_var=$as_ac_var; eval "test \"\$
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h.  */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    eval "$as_ac_var=yes"
  else
 -  eval "$as_ac_var=no"
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      eval "$as_ac_var=no"
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -eval ac_res=\$$as_ac_var
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 +ac_res=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  $as_echo "$ac_res" >&6; }
 -if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
 +if test `eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'` = yes; then
    LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
                         LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
  else
@@@ -8045,61 -6794,23 +8440,54 @@@ if { as_var=$as_ac_var; eval "test \"\$
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    eval "$as_ac_var=yes"
  else
 -  eval "$as_ac_var=no"
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      eval "$as_ac_var=no"
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -eval ac_res=\$$as_ac_var
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 +ac_res=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  $as_echo "$ac_res" >&6; }
 -if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
 +if test `eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'` = yes; then
    LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
                              LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
  fi
@@@ -8114,58 -6823,22 +8502,51 @@@ if test "${ac_cv_cflags__Wl___enable_ne
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    ac_cv_cflags__Wl___enable_new_dtags=yes
  else
 -  ac_cv_cflags__Wl___enable_new_dtags=no
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__Wl___enable_new_dtags=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
  $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
 -if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
 +if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then
    LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
  fi
  
@@@ -8179,61 -6851,24 +8560,54 @@@ if test "${ac_cv_cflags__Wl___section_s
  else
    ac_wine_try_cflags_saved=$CFLAGS
  CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
+ int main(int argc, char *argv) { return 0; }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
    ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
  else
 -  ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
  CFLAGS=$ac_wine_try_cflags_saved
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
  $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
 -if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
 +if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
    LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
  fi
 +
            ;;
        esac
  
@@@ -10177,60 -8050,46 +10551,60 @@@ return IceConnectionNumber ()
    return 0;
  }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 -  case "$LIBEXT" in
 -    dll) ;;
 -    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'` ;;
 -    *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'` ;;
 -  esac
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_ICE_IceConnectionNumber=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_ICE_IceConnectionNumber=no
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 -  LIBS=$ac_check_soname_save_LIBS
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 +$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
 +  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  fi
 -if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 -$as_echo "not found" >&6; }
  
 -else
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
 -$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
 +  LDFLAGS=$ac_save_LDFLAGS
  
 -cat >>confdefs.h <<_ACEOF
 -#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
 -_ACEOF
 +fi
  
  
 -fi
 -        fi
 -        if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
 -  case "x$with_xcursor" in
 -  x)   wine_notices="$wine_notices|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
 -  xno) ;;
 -  *)   as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
 -This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
 -esac
 -fi
 +if test "$have_x" = "yes"
 +then
-     XLIB="-lXext -lX11"
++    XLIB="-lX11"
 +    ac_save_CPPFLAGS="$CPPFLAGS"
 +    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  
 -                if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
 -        then
 -            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
 -$as_echo_n "checking for -lXi... " >&6; }
 -if test "${ac_cv_lib_soname_Xi+set}" = set; then :
 +    { $as_echo "$as_me:$LINENO: checking for -lX11" >&5
 +$as_echo_n "checking for -lX11... " >&6; }
 +if test "${ac_cv_lib_soname_X11+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
@@@ -10372,208 -8190,81 +10746,210 @@@ sed 's/^/| /' conftest.$ac_ext >&
  
  fi
  
 -        fi
 -        if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
 -  case "x$with_xshm" in
 -  x)   wine_notices="$wine_notices|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
 -  xno) ;;
 -  *)   as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
 -This is an error since --with-xshm was requested." "$LINENO" 5 ;;
 -esac
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
  fi
 +if test "x$ac_cv_lib_soname_Xext" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
  
 -                if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
 -        then
 -              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
 -$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
 -if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
 -  $as_echo_n "(cached) " >&6
  else
 -  ac_check_lib_save_LIBS=$LIBS
 -LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 -/* end confdefs.h.  */
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
 +$as_echo "$ac_cv_lib_soname_Xext" >&6; }
  
 -/* Override any GCC internal prototype to avoid an error.
 -   Use char because int might match the return type of a GCC
 -   builtin and then its argument prototype would still apply.  */
 -#ifdef __cplusplus
 -extern "C"
 -#endif
 -char XShapeQueryExtension ();
 -int
 -main ()
 -{
 -return XShapeQueryExtension ();
 -  ;
 -  return 0;
 -}
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 -  ac_cv_lib_Xext_XShapeQueryExtension=yes
 -else
 -  ac_cv_lib_Xext_XShapeQueryExtension=no
 +
++       XLIB="-lXext $XLIB"
  fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 -LIBS=$ac_check_lib_save_LIBS
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
++
 +for ac_header in X11/Xlib.h \
 +                      X11/XKBlib.h \
 +                      X11/Xutil.h \
 +                      X11/Xcursor/Xcursor.h \
 +                      X11/extensions/shape.h \
 +                      X11/extensions/XInput.h \
 +                      X11/extensions/XShm.h \
 +                      X11/extensions/Xcomposite.h \
 +                      X11/extensions/Xinerama.h \
 +                      X11/extensions/Xrandr.h \
 +                      X11/extensions/Xrender.h \
-                       X11/extensions/xf86vmode.h
++                      X11/extensions/xf86vmode.h \
++                      X11/extensions/xf86vmproto.h
 +do
 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 +$as_echo_n "checking for $ac_header... " >&6; }
 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifdef HAVE_X11_XLIB_H
 +# include <X11/Xlib.h>
 +#endif
 +#ifdef HAVE_X11_XUTIL_H
 +# include <X11/Xutil.h>
 +#endif
 +
 +#include <$ac_header>
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  eval "$as_ac_Header=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      eval "$as_ac_Header=no"
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
 -$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
 -if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
  
 -$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_Header'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +as_val=`eval 'as_val=${'$as_ac_Header'}
 +               $as_echo "$as_val"'`
 +   if test "x$as_val" = x""yes; then
 +  cat >>confdefs.h <<_ACEOF
 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 +_ACEOF
  
  fi
  
 -        fi
 -        if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
 -  case "x$with_xshape" in
 -  x)   wine_notices="$wine_notices|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
 -  xno) ;;
 -  *)   as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
 -This is an error since --with-xshape was requested." "$LINENO" 5 ;;
 +done
 +
 +
 +                if test "$ac_cv_header_X11_XKBlib_h" = "yes"
 +        then
 +              { $as_echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
 +$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
 +if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_lib_save_LIBS=$LIBS
- LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
++LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char XkbQueryExtension ();
 +int
 +main ()
 +{
 +return XkbQueryExtension ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
  esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_X11_XkbQueryExtension=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_X11_XkbQueryExtension=no
  fi
  
 -                if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
 +$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
 +if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define HAVE_XKB 1
 +_ACEOF
 +
 +fi
 +
 +        fi
 +
 +                if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
          then
 -            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
 -$as_echo_n "checking for -lXxf86vm... " >&6; }
 -if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
 +            { $as_echo "$as_me:$LINENO: checking for -lXcursor" >&5
 +$as_echo_n "checking for -lXcursor... " >&6; }
 +if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
- LIBS="-lXcursor $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -10666,12 -8325,8 +11042,12 @@@ if test "${ac_cv_lib_soname_Xi+set}" = 
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
- LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -10764,12 -8373,8 +11140,12 @@@ if test "${ac_cv_lib_Xext_XShmQueryExte
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -10844,30 -8421,12 +11220,30 @@@ This is an error since --with-xshm was 
  esac
  fi
  
 -                if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
 +
 +                if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
          then
 -                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +              { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
 +$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
 +if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
++LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
 -#include <X11/Xlib.h>
 -#include <X11/extensions/Xrandr.h>
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char XShapeQueryExtension ();
  int
  main ()
  {
@@@ -10876,78 -8435,15 +11252,78 @@@ return XShapeQueryExtension ()
    return 0;
  }
  _ACEOF
 -if ac_fn_c_try_compile "$LINENO"; then :
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
 -$as_echo_n "checking for -lXrandr... " >&6; }
 -if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_Xext_XShapeQueryExtension=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_Xext_XShapeQueryExtension=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
 +$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
 +if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define HAVE_LIBXSHAPE 1
 +_ACEOF
 +
 +fi
 +
 +        fi
 +        if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then
 +  case "x$with_xshape" in
 +  x)   wine_notices="$wine_notices|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
 +  xno) ;;
 +  *)   { { $as_echo "$as_me:$LINENO: error: XShape ${notice_platform}development files not found, XShape won't be supported.
 +This is an error since --with-xshape was requested." >&5
 +$as_echo "$as_me: error: XShape ${notice_platform}development files not found, XShape won't be supported.
 +This is an error since --with-xshape was requested." >&2;}
 +   { (exit 1); exit 1; }; } ;;
 +esac
 +fi
 +
 +
-                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
++                if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
 +        then
 +            { $as_echo "$as_me:$LINENO: checking for -lXxf86vm" >&5
 +$as_echo_n "checking for -lXxf86vm... " >&6; }
 +if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
- LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -11040,12 -8519,8 +11416,12 @@@ if test "${ac_cv_lib_soname_Xrender+set
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
- LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -11106,25 -8554,37 +11482,25 @@@ if test "x$ac_cv_lib_soname_Xrender" = 
  $as_echo "not found" >&6; }
  
  else
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
 -$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
 +$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
  
  cat >>confdefs.h <<_ACEOF
 -#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
 +#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
  _ACEOF
  
 -
 -fi
 -fi
 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 -        fi
 -        if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
 -  case "x$with_xinerama" in
 -  x)   wine_notices="$wine_notices|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
 -  xno) ;;
 -  *)   as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
 -This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
 -esac
 -fi
 -
 -                if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
 -        then
 -            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
 -$as_echo_n "checking for -lXcomposite... " >&6; }
 -if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
 +       { $as_echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
 +$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
 +if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
 -  ac_check_soname_save_LIBS=$LIBS
 -LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +  ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
++LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -11245,12 -8708,8 +11621,12 @@@ if test "${ac_cv_lib_soname_Xrandr+set}
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
- LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -11385,12 -8747,8 +11761,12 @@@ if test "${ac_cv_lib_soname_Xinerama+se
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
- LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -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"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -11491,12 -8821,8 +11867,12 @@@ if test "${ac_cv_lib_soname_Xcomposite+
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
- LIBS="-lXcomposite $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -11784,51 -9079,33 +12160,51 @@@ GLenum test = GL_UNSIGNED_SHORT_5_6_5
    return 0;
  }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 -  ac_cv_lib_xml2_xmlParseMemory=yes
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  wine_cv_opengl_header_version_OK="yes"
  else
 -  ac_cv_lib_xml2_xmlParseMemory=no
 -fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 -LIBS=$ac_check_lib_save_LIBS
 -fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
 -$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
 -if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
  
 -$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
 +      wine_cv_opengl_header_version_OK="no"
 +fi
  
 -                 XML2LIBS="$ac_xml_libs"
 -                 XML2INCL="$ac_xml_cflags"
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  fi
 +{ $as_echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
 +$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
  
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
 -$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
 -if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
 +          if test "$wine_cv_opengl_header_version_OK" = "yes"
 +            then
 +                              { $as_echo "$as_me:$LINENO: checking for -lGL" >&5
 +$as_echo_n "checking for -lGL... " >&6; }
 +if test "${ac_cv_lib_soname_GL+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
 -  ac_check_lib_save_LIBS=$LIBS
 -LIBS="-lxml2 $ac_xml_libs $LIBS"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +  ac_check_soname_save_LIBS=$LIBS
- LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
++LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -11879,26 -9139,15 +12255,26 @@@ sed 's/^/| /' conftest.$ac_ext >&
  
  fi
  
 -             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
 -$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
 -if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_GL" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +       { $as_echo "$as_me:$LINENO: checking for -lGL" >&5
 +$as_echo_n "checking for -lGL... " >&6; }
 +if test "${ac_cv_lib_soname_GL+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
 -  ac_check_lib_save_LIBS=$LIBS
 -LIBS="-lxml2 $ac_xml_libs $LIBS"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +  ac_check_soname_save_LIBS=$LIBS
- LIBS="-lGL $X_LIBS -lXext -lX11 -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"
++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"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -12004,12 -9236,8 +12380,12 @@@ if test "${ac_cv_lib_soname_GLU+set}" 
    $as_echo_n "(cached) " >&6
  else
    ac_check_soname_save_LIBS=$LIBS
- LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
 -LIBS="-lxslt $ac_xslt_libs $LIBS"
 -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -12337,12 -9324,8 +12713,12 @@@ if test "${ac_cv_lib_audio_AuCreateFlow
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
- LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 -LIBS="-ldbus-1 $ac_hal_libs $LIBS"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  /* Override any GCC internal prototype to avoid an error.
@@@ -12431,77 -9380,42 +12807,77 @@@ return XauGetBestAuthByAddr ()
    return 0;
  }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 -  case "$LIBEXT" in
 -    dll) ;;
 -    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'` ;;
 -    *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'` ;;
 -  esac
 -fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 -  LIBS=$ac_check_soname_save_LIBS
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_Xau_XauGetBestAuthByAddr=no
  fi
 -if test "x$ac_cv_lib_soname_hal" = "x"; then :
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 -$as_echo "not found" >&6; }
  
-   NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
 +$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
 +if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then
++  NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
  else
-   NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
 -$as_echo "$ac_cv_lib_soname_hal" >&6; }
++  NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
 +fi
  
 -cat >>confdefs.h <<_ACEOF
 -#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
 -_ACEOF
  
 -       HALINCL="$ac_hal_cflags"
  fi
 +
  fi
  
 -    fi
 +done
 +
 +
      CPPFLAGS="$ac_save_CPPFLAGS"
 +else
 +    XLIB=""
 +    X_CFLAGS=""
 +    X_LIBS=""
 +    enable_winex11_drv=${enable_winex11_drv:-no}
 +    enable_opengl32=${enable_opengl32:-no}
 +    enable_glu32=${enable_glu32:-no}
  fi
 -if test "x$ac_cv_lib_soname_hal" = "x"; then :
 -  case "x$with_hal" in
 -  x)   wine_notices="$wine_notices|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
 +if test "x$XLIB" = "x"; then
 +  case "x$with_x" in
    xno) ;;
 -  *)   as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
 -This is an error since --with-hal was requested." "$LINENO" 5 ;;
 +  *)   { { $as_echo "$as_me:$LINENO: error: X ${notice_platform}development files not found. Wine will be built
 +without X support, which probably isn't what you want. You will need to install
 +${notice_platform}development packages of Xlib/Xfree86 at the very least.
 +Use the --without-x option if you really want this." >&5
 +$as_echo "$as_me: error: X ${notice_platform}development files not found. Wine will be built
 +without X support, which probably isn't what you want. You will need to install
 +${notice_platform}development packages of Xlib/Xfree86 at the very least.
 +Use the --without-x option if you really want this." >&2;}
 +   { (exit 1); exit 1; }; } ;;
  esac
  fi
  
@@@ -16437,6363 -12183,58 +16813,6789 @@@ return cupsGetDefault ()
    return 0;
  }
  _ACEOF
 -if ac_fn_c_try_link "$LINENO"; then :
 -  ac_cv_lib_dl_dlopen=yes
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_cups" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
 +$as_echo "$ac_cv_lib_soname_cups" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
 +_ACEOF
 +
 +       CUPSINCL="$ac_cups_cflags"
 +fi
 +
 +fi
 +
 +done
 +
 +    CPPFLAGS="$ac_save_CPPFLAGS"
 +fi
 +if test "x$ac_cv_lib_soname_cups" = "x"; then
 +  case "x$with_cups" in
 +  x)   wine_notices="$wine_notices|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
 +  xno) ;;
 +  *)   { { $as_echo "$as_me:$LINENO: error: libcups ${notice_platform}development files not found, CUPS won't be supported.
 +This is an error since --with-cups was requested." >&5
 +$as_echo "$as_me: error: libcups ${notice_platform}development files not found, CUPS won't be supported.
 +This is an error since --with-cups was requested." >&2;}
 +   { (exit 1); exit 1; }; } ;;
 +esac
 +fi
 +
 +
 +if test "$ac_cv_header_jack_jack_h" = "yes"
 +then
 +    { $as_echo "$as_me:$LINENO: checking for -ljack" >&5
 +$as_echo_n "checking for -ljack... " >&6; }
 +if test "${ac_cv_lib_soname_jack+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-ljack  $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char jack_client_new ();
 +int
 +main ()
 +{
 +return jack_client_new ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
 +    *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_jack" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
 +$as_echo "$ac_cv_lib_soname_jack" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
 +_ACEOF
 +
 +
 +fi
 +
 +fi
 +
 +if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
 +then
 +    ac_fontconfig_libs=`pkg-config --libs fontconfig`
 +    { $as_echo "$as_me:$LINENO: checking for -lfontconfig" >&5
 +$as_echo_n "checking for -lfontconfig... " >&6; }
 +if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-lfontconfig  $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char FcInit ();
 +int
 +main ()
 +{
 +return FcInit ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
 +$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
 +_ACEOF
 +
 +
 +fi
 +
 +    FONTCONFIGLIBS="$ac_fontconfig_libs"
 +
 +elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
 +then
 +        ac_save_CPPFLAGS="$CPPFLAGS"
 +    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
 +    $as_unset ac_cv_header_fontconfig_fontconfig_h
 +
 +for ac_header in fontconfig/fontconfig.h
 +do
 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 +  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 +$as_echo_n "checking for $ac_header... " >&6; }
 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_Header'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +else
 +  # Is the header compilable?
 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 +$as_echo_n "checking $ac_header usability... " >&6; }
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +#include <$ac_header>
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_header_compiler=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_header_compiler=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 +$as_echo "$ac_header_compiler" >&6; }
 +
 +# Is the header present?
 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 +$as_echo_n "checking $ac_header presence... " >&6; }
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <$ac_header>
 +_ACEOF
 +if { (ac_try="$ac_cpp conftest.$ac_ext"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } >/dev/null && {
 +       test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       }; then
 +  ac_header_preproc=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +  ac_header_preproc=no
 +fi
 +
 +rm -f conftest.err conftest.$ac_ext
 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 +$as_echo "$ac_header_preproc" >&6; }
 +
 +# So?  What about this header?
 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 +  yes:no: )
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 +    ac_header_preproc=yes
 +    ;;
 +  no:yes:* )
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 +$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 +$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 +    ( cat <<\_ASBOX
 +## ------------------------------------ ##
 +## Report this to wine-devel@winehq.org ##
 +## ------------------------------------ ##
 +_ASBOX
 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
 +    ;;
 +esac
 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 +$as_echo_n "checking for $ac_header... " >&6; }
 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  eval "$as_ac_Header=\$ac_header_preproc"
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_Header'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +
 +fi
 +as_val=`eval 'as_val=${'$as_ac_Header'}
 +               $as_echo "$as_val"'`
 +   if test "x$as_val" = x""yes; then
 +  cat >>confdefs.h <<_ACEOF
 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 +_ACEOF
 +
 +fi
 +
 +done
 +
 +    CPPFLAGS="$ac_save_CPPFLAGS"
 +    if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
 +    then
 +        FONTCONFIGINCL="$X_CFLAGS"
 +
 +        { $as_echo "$as_me:$LINENO: checking for -lfontconfig" >&5
 +$as_echo_n "checking for -lfontconfig... " >&6; }
 +if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-lfontconfig $X_LIBS $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char FcInit ();
 +int
 +main ()
 +{
 +return FcInit ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
 +$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
 +_ACEOF
 +
 +
 +fi
 +
 +    fi
 +fi
 +if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
 +  case "x$with_fontconfig" in
 +  x)   wine_notices="$wine_notices|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
 +  xno) ;;
 +  *)   { { $as_echo "$as_me:$LINENO: error: fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
 +This is an error since --with-fontconfig was requested." >&5
 +$as_echo "$as_me: error: fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
 +This is an error since --with-fontconfig was requested." >&2;}
 +   { (exit 1); exit 1; }; } ;;
 +esac
 +fi
 +
 +
 +if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
 +then
 +    { $as_echo "$as_me:$LINENO: checking for -lssl" >&5
 +$as_echo_n "checking for -lssl... " >&6; }
 +if test "${ac_cv_lib_soname_ssl+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-lssl  $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char SSL_library_init ();
 +int
 +main ()
 +{
 +return SSL_library_init ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_ssl" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
 +$as_echo "$ac_cv_lib_soname_ssl" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
 +_ACEOF
 +
 +
 +fi
 +
 +    { $as_echo "$as_me:$LINENO: checking for -lcrypto" >&5
 +$as_echo_n "checking for -lcrypto... " >&6; }
 +if test "${ac_cv_lib_soname_crypto+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-lcrypto  $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char BIO_new_socket ();
 +int
 +main ()
 +{
 +return BIO_new_socket ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_crypto" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
 +$as_echo "$ac_cv_lib_soname_crypto" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
 +_ACEOF
 +
 +
 +fi
 +
 +fi
 +if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then
 +  case "x$with_openssl" in
 +  x)   wine_warnings="$wine_warnings|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
 +  xno) ;;
 +  *)   { { $as_echo "$as_me:$LINENO: error: OpenSSL ${notice_platform}development files not found, SSL won't be supported.
 +This is an error since --with-openssl was requested." >&5
 +$as_echo "$as_me: error: OpenSSL ${notice_platform}development files not found, SSL won't be supported.
 +This is an error since --with-openssl was requested." >&2;}
 +   { (exit 1); exit 1; }; } ;;
 +esac
 +fi
 +
 +
++if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
++then
++    { $as_echo "$as_me:$LINENO: checking for -lgsm" >&5
++$as_echo_n "checking for -lgsm... " >&6; }
++if test "${ac_cv_lib_soname_gsm+set}" = set; then
++  $as_echo_n "(cached) " >&6
++else
++  ac_check_soname_save_LIBS=$LIBS
++LIBS="-lgsm  $LIBS"
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any GCC internal prototype to avoid an error.
++   Use char because int might match the return type of a GCC
++   builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++char gsm_create ();
++int
++main ()
++{
++return gsm_create ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_link") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest$ac_exeext && {
++       test "$cross_compiling" = yes ||
++       $as_test_x conftest$ac_exeext
++       }; then
++  case "$LIBEXT" in
++    dll) ;;
++    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'` ;;
++    *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'` ;;
++  esac
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++
++fi
++
++rm -rf conftest.dSYM
++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
++      conftest$ac_exeext conftest.$ac_ext
++  LIBS=$ac_check_soname_save_LIBS
++fi
++if test "x$ac_cv_lib_soname_gsm" = "x"; then
++  { $as_echo "$as_me:$LINENO: result: not found" >&5
++$as_echo "not found" >&6; }
++
++else
++  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gsm" >&5
++$as_echo "$ac_cv_lib_soname_gsm" >&6; }
++
++cat >>confdefs.h <<_ACEOF
++#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
++_ACEOF
++
++
++fi
++
++fi
++if test "x$ac_cv_lib_soname_gsm" = "x"; then
++  case "x$with_gsm" in
++  x)   wine_notices="$wine_notices|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
++  xno) ;;
++  *)   { { $as_echo "$as_me:$LINENO: error: libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
++This is an error since --with-gsm was requested." >&5
++$as_echo "$as_me: error: libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
++This is an error since --with-gsm was requested." >&2;}
++   { (exit 1); exit 1; }; } ;;
++esac
++fi
++
++
 +if test "$ac_cv_header_jpeglib_h" = "yes"
 +then
 +    { $as_echo "$as_me:$LINENO: checking for -ljpeg" >&5
 +$as_echo_n "checking for -ljpeg... " >&6; }
 +if test "${ac_cv_lib_soname_jpeg+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-ljpeg  $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char jpeg_start_decompress ();
 +int
 +main ()
 +{
 +return jpeg_start_decompress ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_jpeg" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
 +$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
 +_ACEOF
 +
 +
 +fi
 +
 +fi
 +if test "x$ac_cv_lib_soname_jpeg" = "x"; then
 +  case "x$with_jpeg" in
 +  x)   wine_warnings="$wine_warnings|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
 +  xno) ;;
 +  *)   { { $as_echo "$as_me:$LINENO: error: libjpeg ${notice_platform}development files not found, JPEG won't be supported.
 +This is an error since --with-jpeg was requested." >&5
 +$as_echo "$as_me: error: libjpeg ${notice_platform}development files not found, JPEG won't be supported.
 +This is an error since --with-jpeg was requested." >&2;}
 +   { (exit 1); exit 1; }; } ;;
 +esac
 +fi
 +
 +
 +if test "$ac_cv_header_png_h" = "yes"
 +then
 +    { $as_echo "$as_me:$LINENO: checking for -lpng" >&5
 +$as_echo_n "checking for -lpng... " >&6; }
 +if test "${ac_cv_lib_soname_png+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-lpng -lm -lz $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char png_create_read_struct ();
 +int
 +main ()
 +{
 +return png_create_read_struct ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) 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'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_png" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_png" >&5
 +$as_echo "$ac_cv_lib_soname_png" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
 +_ACEOF
 +
 +
 +fi
 +
 +elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
 +then
 +        ac_save_CPPFLAGS="$CPPFLAGS"
 +    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
 +    $as_unset ac_cv_header_png_h
 +
 +for ac_header in png.h
 +do
 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 +  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 +$as_echo_n "checking for $ac_header... " >&6; }
 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_Header'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +else
 +  # Is the header compilable?
 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 +$as_echo_n "checking $ac_header usability... " >&6; }
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +#include <$ac_header>
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_header_compiler=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_header_compiler=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 +$as_echo "$ac_header_compiler" >&6; }
 +
 +# Is the header present?
 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 +$as_echo_n "checking $ac_header presence... " >&6; }
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <$ac_header>
 +_ACEOF
 +if { (ac_try="$ac_cpp conftest.$ac_ext"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } >/dev/null && {
 +       test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       }; then
 +  ac_header_preproc=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +  ac_header_preproc=no
 +fi
 +
 +rm -f conftest.err conftest.$ac_ext
 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 +$as_echo "$ac_header_preproc" >&6; }
 +
 +# So?  What about this header?
 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 +  yes:no: )
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 +    ac_header_preproc=yes
 +    ;;
 +  no:yes:* )
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 +$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 +$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 +    ( cat <<\_ASBOX
 +## ------------------------------------ ##
 +## Report this to wine-devel@winehq.org ##
 +## ------------------------------------ ##
 +_ASBOX
 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
 +    ;;
 +esac
 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 +$as_echo_n "checking for $ac_header... " >&6; }
 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  eval "$as_ac_Header=\$ac_header_preproc"
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_Header'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +
 +fi
 +as_val=`eval 'as_val=${'$as_ac_Header'}
 +               $as_echo "$as_val"'`
 +   if test "x$as_val" = x""yes; then
 +  cat >>confdefs.h <<_ACEOF
 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 +_ACEOF
 +
 +fi
 +
 +done
 +
 +    CPPFLAGS="$ac_save_CPPFLAGS"
 +    if test "$ac_cv_header_png_h" = "yes"
 +    then
 +        PNGINCL="$X_CFLAGS"
 +
 +        { $as_echo "$as_me:$LINENO: checking for -lpng" >&5
 +$as_echo_n "checking for -lpng... " >&6; }
 +if test "${ac_cv_lib_soname_png+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-lpng $X_LIBS -lm -lz $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char png_create_read_struct ();
 +int
 +main ()
 +{
 +return png_create_read_struct ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) 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'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_png" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_png" >&5
 +$as_echo "$ac_cv_lib_soname_png" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
 +_ACEOF
 +
 +
 +fi
 +
 +    fi
 +fi
 +if test "x$ac_cv_lib_soname_png" = "x"; then
 +  case "x$with_png" in
 +  x)   wine_warnings="$wine_warnings|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
 +  xno) ;;
 +  *)   { { $as_echo "$as_me:$LINENO: error: libpng ${notice_platform}development files not found, PNG won't be supported.
 +This is an error since --with-png was requested." >&5
 +$as_echo "$as_me: error: libpng ${notice_platform}development files not found, PNG won't be supported.
 +This is an error since --with-png was requested." >&2;}
 +   { (exit 1); exit 1; }; } ;;
 +esac
 +fi
 +
 +
++if test "$ac_cv_header_mpg123_h" = "yes"
++then
++    { $as_echo "$as_me:$LINENO: checking for mpg123_feed in -lmpg123" >&5
++$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
++if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then
++  $as_echo_n "(cached) " >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lmpg123  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any GCC internal prototype to avoid an error.
++   Use char because int might match the return type of a GCC
++   builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++char mpg123_feed ();
++int
++main ()
++{
++return mpg123_feed ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_link") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest$ac_exeext && {
++       test "$cross_compiling" = yes ||
++       $as_test_x conftest$ac_exeext
++       }; then
++  ac_cv_lib_mpg123_mpg123_feed=yes
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++      ac_cv_lib_mpg123_mpg123_feed=no
++fi
++
++rm -rf conftest.dSYM
++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
++$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
++if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then
++  LIBMPG123="-lmpg123"
++
++fi
++
++fi
++if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes; then
++  case "x$with_mpg123" in
++  x)   wine_notices="$wine_notices|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
++  xno) ;;
++  *)   { { $as_echo "$as_me:$LINENO: error: libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
++This is an error since --with-mpg123 was requested." >&5
++$as_echo "$as_me: error: libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
++This is an error since --with-mpg123 was requested." >&2;}
++   { (exit 1); exit 1; }; } ;;
++esac
++fi
++
++test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
++
++if test "$ac_cv_header_AL_al_h" = "yes"
++then
++    { $as_echo "$as_me:$LINENO: checking for alGetSource3i in -lopenal" >&5
++$as_echo_n "checking for alGetSource3i in -lopenal... " >&6; }
++if test "${ac_cv_lib_openal_alGetSource3i+set}" = set; then
++  $as_echo_n "(cached) " >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lopenal  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any GCC internal prototype to avoid an error.
++   Use char because int might match the return type of a GCC
++   builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++char alGetSource3i ();
++int
++main ()
++{
++return alGetSource3i ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_link") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest$ac_exeext && {
++       test "$cross_compiling" = yes ||
++       $as_test_x conftest$ac_exeext
++       }; then
++  ac_cv_lib_openal_alGetSource3i=yes
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++      ac_cv_lib_openal_alGetSource3i=no
++fi
++
++rm -rf conftest.dSYM
++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_openal_alGetSource3i" >&5
++$as_echo "$ac_cv_lib_openal_alGetSource3i" >&6; }
++if test "x$ac_cv_lib_openal_alGetSource3i" = x""yes; then
++  LIBOPENAL="-lopenal"
++
++fi
++
++fi
++if test "x$ac_cv_lib_openal_alGetSource3i" != xyes; then
++  case "x$with_openal" in
++  x)   wine_notices="$wine_notices|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
++  xno) ;;
++  *)   { { $as_echo "$as_me:$LINENO: error: libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
++This is an error since --with-openal was requested." >&5
++$as_echo "$as_me: error: libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
++This is an error since --with-openal was requested." >&2;}
++   { (exit 1); exit 1; }; } ;;
++esac
++fi
++
++test "x$ac_cv_lib_openal_alGetSource3i" = xyes || enable_openal32=${enable_openal32:-no}
++
 +if test "$ac_cv_header_kstat_h" = "yes"
 +then
 +    { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
 +$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
 +if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_lib_save_LIBS=$LIBS
 +LIBS="-lkstat  $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char kstat_open ();
 +int
 +main ()
 +{
 +return kstat_open ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_kstat_kstat_open=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_kstat_kstat_open=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
 +$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
 +if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define HAVE_LIBKSTAT 1
 +_ACEOF
 +
 +                  LIBKSTAT="-lkstat"
 +
 +fi
 +
 +fi
 +
 +{ $as_echo "$as_me:$LINENO: checking for -lodbc" >&5
 +$as_echo_n "checking for -lodbc... " >&6; }
 +if test "${ac_cv_lib_soname_odbc+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_soname_save_LIBS=$LIBS
 +LIBS="-lodbc  $LIBS"
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char SQLConnect ();
 +int
 +main ()
 +{
 +return SQLConnect ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  case "$LIBEXT" in
 +    dll) ;;
 +    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'` ;;
 +    *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
 +  esac
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +  LIBS=$ac_check_soname_save_LIBS
 +fi
 +if test "x$ac_cv_lib_soname_odbc" = "x"; then
 +  { $as_echo "$as_me:$LINENO: result: not found" >&5
 +$as_echo "not found" >&6; }
 +       cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBODBC "libodbc.$LIBEXT"
 +_ACEOF
 +
 +else
 +  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_soname_odbc" >&5
 +$as_echo "$ac_cv_lib_soname_odbc" >&6; }
 +
 +cat >>confdefs.h <<_ACEOF
 +#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
 +_ACEOF
 +
 +
 +fi
 +
 +
 +if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
 +        "$ac_cv_header_sys_soundcard_h" != "yes" -a \
 +        "$ac_cv_header_machine_soundcard_h" != "yes" -a \
 +        "$ac_cv_header_soundcard_h" != "yes" -a \
 +        "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
 +then
 +    wine_warnings="$wine_warnings|No sound system was found. Windows applications will be silent."
 +fi
 +
 +
 +EXTRACFLAGS=""
 +
 +if test "x${GCC}" = "xyes"
 +then
 +  EXTRACFLAGS="-Wall -pipe"
 +
 +    { $as_echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
 +$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
 +if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  if test "$cross_compiling" = yes; then
 +  ac_cv_c_gcc_strength_bug="yes"
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +int L[4] = {0,1,2,3};
 +int
 +main ()
 +{
 +static int Array[3];
 +  unsigned int B = 3;
 +  int i;
 +  for(i=0; i<B; i++) Array[i] = i - 3;
 +  for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
 +  L[i] = 4;
 +  return (Array[1] != -2 || L[2] != 3)
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>&5
 +  ac_status=$?
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 +  { (case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_try") 2>&5
 +  ac_status=$?
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); }; }; then
 +  ac_cv_c_gcc_strength_bug="no"
 +else
 +  $as_echo "$as_me: program exited with status $ac_status" >&5
 +$as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +( exit $ac_status )
 +ac_cv_c_gcc_strength_bug="yes"
 +fi
 +rm -rf conftest.dSYM
 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 +fi
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
 +$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
 +  if test "$ac_cv_c_gcc_strength_bug" = "yes"
 +  then
 +    EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
 +  fi
 +
 +    { $as_echo "$as_me:$LINENO: checking whether the compiler supports -fno-builtin" >&5
 +$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
 +if test "${ac_cv_cflags__fno_builtin+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_wine_try_cflags_saved=$CFLAGS
- CFLAGS="$CFLAGS -fno-builtin"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h.  */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
++CFLAGS="$CFLAGS -fno-builtin"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++int main(int argc, char *argv) { return 0; }
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_cflags__fno_builtin=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__fno_builtin=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +CFLAGS=$ac_wine_try_cflags_saved
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_builtin" >&5
 +$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
 +if test $ac_cv_cflags__fno_builtin = yes; then
 +  BUILTINFLAG="-fno-builtin"
 +
 +fi
 +
 +  { $as_echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
 +$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
 +if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_wine_try_cflags_saved=$CFLAGS
 +CFLAGS="$CFLAGS -fno-strict-aliasing"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
++int main(int argc, char *argv) { return 0; }
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_cflags__fno_strict_aliasing=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__fno_strict_aliasing=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +CFLAGS=$ac_wine_try_cflags_saved
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
 +$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
 +if test $ac_cv_cflags__fno_strict_aliasing = yes; then
 +  EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
 +fi
 +
 +  { $as_echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
 +$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
 +if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_wine_try_cflags_saved=$CFLAGS
 +CFLAGS="$CFLAGS -Wdeclaration-after-statement"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
++int main(int argc, char *argv) { return 0; }
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_cflags__Wdeclaration_after_statement=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__Wdeclaration_after_statement=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +CFLAGS=$ac_wine_try_cflags_saved
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
 +$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
 +if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
 +  EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
 +fi
 +
++  { $as_echo "$as_me:$LINENO: checking whether the compiler supports -Wstrict-prototypes" >&5
++$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
++if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then
++  $as_echo_n "(cached) " >&6
++else
++  ac_wine_try_cflags_saved=$CFLAGS
++CFLAGS="$CFLAGS -Wstrict-prototypes"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++int main(int argc, char *argv) { return 0; }
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_link") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest$ac_exeext && {
++       test "$cross_compiling" = yes ||
++       $as_test_x conftest$ac_exeext
++       }; then
++  ac_cv_cflags__Wstrict_prototypes=yes
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++      ac_cv_cflags__Wstrict_prototypes=no
++fi
++
++rm -rf conftest.dSYM
++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
++      conftest$ac_exeext conftest.$ac_ext
++CFLAGS=$ac_wine_try_cflags_saved
++fi
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__Wstrict_prototypes" >&5
++$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
++if test $ac_cv_cflags__Wstrict_prototypes = yes; then
++  EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
++fi
++
 +  { $as_echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
 +$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
 +if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_wine_try_cflags_saved=$CFLAGS
 +CFLAGS="$CFLAGS -Wwrite-strings"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
++int main(int argc, char *argv) { return 0; }
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_cflags__Wwrite_strings=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__Wwrite_strings=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +CFLAGS=$ac_wine_try_cflags_saved
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
 +$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
 +if test $ac_cv_cflags__Wwrite_strings = yes; then
 +  EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
 +fi
 +
 +  { $as_echo "$as_me:$LINENO: checking whether the compiler supports -Wtype-limits" >&5
 +$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
 +if test "${ac_cv_cflags__Wtype_limits+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_wine_try_cflags_saved=$CFLAGS
 +CFLAGS="$CFLAGS -Wtype-limits"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
- int
- main ()
- {
-   ;
-   return 0;
- }
++int main(int argc, char *argv) { return 0; }
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_cflags__Wtype_limits=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_cflags__Wtype_limits=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +CFLAGS=$ac_wine_try_cflags_saved
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__Wtype_limits" >&5
 +$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
 +if test $ac_cv_cflags__Wtype_limits = yes; then
 +  EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
 +fi
 +
 +
 +    saved_CFLAGS="$CFLAGS"
 +  CFLAGS="$CFLAGS -Wpointer-arith -Werror"
 +  { $as_echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
 +$as_echo_n "checking for broken string.h that generates warnings... " >&6; }
 +if test "${ac_cv_c_string_h_warnings+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <string.h>
 +int
 +main ()
 +{
 +
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_c_string_h_warnings=no
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_c_string_h_warnings=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
 +$as_echo "$ac_cv_c_string_h_warnings" >&6; }
 +  CFLAGS="$saved_CFLAGS"
 +  if test "$ac_cv_c_string_h_warnings" = "no"
 +  then
 +    EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
++  fi
++
++    if test "${enable_maintainer_mode+set}" = set
++  then
++      { $as_echo "$as_me:$LINENO: checking whether the compiler supports -Werror" >&5
++$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
++if test "${ac_cv_cflags__Werror+set}" = set; then
++  $as_echo_n "(cached) " >&6
++else
++  ac_wine_try_cflags_saved=$CFLAGS
++CFLAGS="$CFLAGS -Werror"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++int main(int argc, char *argv) { return 0; }
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_link") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest$ac_exeext && {
++       test "$cross_compiling" = yes ||
++       $as_test_x conftest$ac_exeext
++       }; then
++  ac_cv_cflags__Werror=yes
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++      ac_cv_cflags__Werror=no
++fi
++
++rm -rf conftest.dSYM
++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
++      conftest$ac_exeext conftest.$ac_ext
++CFLAGS=$ac_wine_try_cflags_saved
++fi
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_cflags__Werror" >&5
++$as_echo "$ac_cv_cflags__Werror" >&6; }
++if test $ac_cv_cflags__Werror = yes; then
++  EXTRACFLAGS="$EXTRACFLAGS -Werror"
++fi
++
++  fi
++
++    saved_CFLAGS="$CFLAGS"
++  CFLAGS="$CFLAGS -Werror"
++  { $as_echo "$as_me:$LINENO: checking for ms_hook_prologue attribute" >&5
++$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
++if test "${ac_cv_have_ms_hook_prologue+set}" = set; then
++  $as_echo_n "(cached) " >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
++$as_echo "$ac_try_echo") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
++  ac_cv_have_ms_hook_prologue="yes"
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++      ac_cv_have_ms_hook_prologue="no"
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_ms_hook_prologue" >&5
++$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
++  CFLAGS="$saved_CFLAGS"
++  if test "$ac_cv_have_ms_hook_prologue" = "yes"
++  then
++
++cat >>confdefs.h <<\_ACEOF
++#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))
++_ACEOF
++
++  else
++      cat >>confdefs.h <<\_ACEOF
++#define DECLSPEC_HOTPATCH /* */
++_ACEOF
++
 +  fi
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
 +$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
 +if test "${ac_cv_c_extern_prefix+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +extern int ac_test;
 +int
 +main ()
 +{
 +asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_c_extern_prefix="yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_c_extern_prefix="no"
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
 +$as_echo "$ac_cv_c_extern_prefix" >&6; }
 +
 +case $host_cpu in
 +  *i[3456789]86*)
 +    { $as_echo "$as_me:$LINENO: checking whether external symbols need stdcall decoration" >&5
 +$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
 +if test "${ac_cv_c_stdcall_suffix+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifndef _MSC_VER
 +#define __stdcall __attribute__((__stdcall__))
 +#endif
 +int __stdcall ac_test(int i) { return i; }
 +int
 +main ()
 +{
 +asm("jmp _ac_test@4"); if (ac_test(1)) return 1
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_c_stdcall_suffix="yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_c_stdcall_suffix="no"
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_suffix" >&5
 +$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
 +  *) ac_cv_c_stdcall_suffix="no" ;;
 +esac
 +
 +
 +
 +if test "$ac_cv_c_extern_prefix" = "yes"
 +then
 +    cat >>confdefs.h <<\_ACEOF
 +#define __ASM_NAME(name) "_" name
 +_ACEOF
 +
 +    asm_name_prefix="_"
 +else
 +    cat >>confdefs.h <<\_ACEOF
 +#define __ASM_NAME(name) name
 +_ACEOF
 +
 +    asm_name_prefix=""
 +fi
 +
 +
 +
 +if test "$ac_cv_c_stdcall_suffix" = "yes"
 +then
 +    cat >>confdefs.h <<\_ACEOF
 +#define __ASM_STDCALL(args) "@" #args
 +_ACEOF
 +
 +else
 +    cat >>confdefs.h <<\_ACEOF
 +#define __ASM_STDCALL(args) ""
 +_ACEOF
 +
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
 +$as_echo_n "checking how to define a function in assembly code... " >&6; }
 +if test "${ac_cv_asm_func_def+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +int
 +main ()
 +{
 +asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_asm_func_def=".def"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +int
 +main ()
 +{
 +asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_asm_func_def=".type @function"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +int
 +main ()
 +{
 +asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_asm_func_def=".type 2"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_asm_func_def="unknown"
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
 +$as_echo "$ac_cv_asm_func_def" >&6; }
 +
 +
 +
 +case "$ac_cv_asm_func_def" in
 +  ".def")
 +     cat >>confdefs.h <<\_ACEOF
 +#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
 +_ACEOF
 +
 +     asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
 +  ".type @function")
 +     cat >>confdefs.h <<\_ACEOF
 +#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
 +_ACEOF
 +
 +     asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
 +  ".type 2")
 +     cat >>confdefs.h <<\_ACEOF
 +#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
 +_ACEOF
 +
 +     asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
 +  *)
 +     cat >>confdefs.h <<\_ACEOF
 +#define __ASM_FUNC(name) ""
 +_ACEOF
 +
 +     asm_func_header="" ;;
 +esac
 +
 +{ $as_echo "$as_me:$LINENO: checking whether asm() works outside of functions" >&5
 +$as_echo_n "checking whether asm() works outside of functions... " >&6; }
 +if test "${ac_cv_c_asm_outside_funcs+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +asm(".text\n\t.long 0");
 +int
 +main ()
 +{
 +
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_c_asm_outside_funcs="yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_c_asm_outside_funcs="no"
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_asm_outside_funcs" >&5
 +$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
 +
 +{ $as_echo "$as_me:$LINENO: checking whether .previous is supported in assembly code" >&5
 +$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
 +if test "${ac_cv_c_dot_previous+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +int
 +main ()
 +{
 +asm(".text\nac_test:\t.long 0\n\t.previous");
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_c_dot_previous="yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_c_dot_previous="no"
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_dot_previous" >&5
 +$as_echo "$ac_cv_c_dot_previous" >&6; }
 +
 +{ $as_echo "$as_me:$LINENO: checking whether CFI directives are supported in assembly code" >&5
 +$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
 +if test "${ac_cv_c_cfi_support+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
 +int
 +main ()
 +{
 +
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_c_cfi_support="yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_c_cfi_support="no"
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_cfi_support" >&5
 +$as_echo "$ac_cv_c_cfi_support" >&6; }
 +
 +asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
 +asm_func_trailer=""
 +if test "$ac_cv_c_dot_previous" = "yes"
 +then
 +   asm_func_trailer="\\n\\t.previous"
 +fi
 +if test "$ac_cv_c_cfi_support" = "yes"
 +then
 +   asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
 +   asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define __ASM_CFI(str) str
 +_ACEOF
 +
 +else
 +   cat >>confdefs.h <<\_ACEOF
 +#define __ASM_CFI(str) ""
 +_ACEOF
 +
 +fi
 +
 +asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
 +
 +
 +
 +if test "$ac_cv_c_asm_outside_funcs" = "yes"
 +then
 +    cat >>confdefs.h <<_ACEOF
 +#define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
 +_ACEOF
 +
 +else
 +    cat >>confdefs.h <<_ACEOF
 +#define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
 +_ACEOF
 +
 +fi
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,"",code)
 +_ACEOF
 +
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)
 +_ACEOF
 +
 +
 +
 +LDPATH=""
 +
 +case $build_os in
 +  cygwin*|mingw32*)
++    TOOLSEXT=".exe"
++
 +    LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
 +    ;;
 +  darwin*|macosx*)
 +    ;;
 +  *)
 +    LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
 +    ;;
 +esac
 +
 +case $host_os in
 +  mingw32*)
 +    CRTLIBS="-lmsvcrt"
 +
 +    SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
 +
 +    ;;
 +esac
 +
++MAIN_BINARY="wine"
++
++test -z "$with_wine64" || MAIN_BINARY="wine32"
++
 +case $host_cpu in
 +  *i[3456789]86*)
 +    case $host_os in
 +      linux* | k*bsd*-gnu)
 +        EXTRA_BINARIES="wine-preloader"
 + ;;
 +    esac
 +    ;;
 +esac
 +
 +
 +ac_save_CFLAGS="$CFLAGS"
 +CFLAGS="$CFLAGS $BUILTINFLAG"
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
++
 +
 +
 +for ac_func in \
 +      _pclose \
 +      _popen \
 +      _snprintf \
 +      _spawnvp \
 +      _strdup \
 +      _stricmp \
 +      _strnicmp \
 +      _strtoi64 \
 +      _strtoui64 \
 +      _vsnprintf \
 +      asctime_r \
 +      chsize \
 +      dlopen \
 +      epoll_create \
 +      ffs \
 +      finite \
 +      fnmatch \
 +      fork \
 +      fpclass \
 +      fstatfs \
 +      fstatvfs \
 +      ftruncate \
 +      futimes \
 +      futimesat \
 +      getdirentries \
 +      getopt_long \
 +      getpagesize \
 +      getpwuid \
 +      gettid \
 +      gettimeofday \
 +      getuid \
 +      kqueue \
 +      lstat \
 +      memmove \
 +      mmap \
 +      pclose \
 +      pipe2 \
 +      poll \
 +      popen \
 +      prctl \
 +      pread \
 +      pwrite \
 +      readdir \
 +      readlink \
++      sched_setaffinity \
 +      sched_yield \
 +      select \
 +      setproctitle \
 +      setrlimit \
 +      settimeofday \
 +      sigaltstack \
 +      sigprocmask \
 +      snprintf \
 +      spawnvp \
 +      statfs \
 +      statvfs \
 +      strcasecmp \
 +      strdup \
 +      strerror \
 +      strncasecmp \
 +      strtold \
 +      strtoll \
 +      strtoull \
 +      symlink \
 +      tcgetattr \
 +      thr_kill2 \
 +      timegm \
 +      usleep \
 +      vsnprintf \
 +      wait4 \
 +      waitpid \
 +
 +do
 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 +$as_echo_n "checking for $ac_func... " >&6; }
 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 +#define $ac_func innocuous_$ac_func
 +
 +/* Tell GNU C headers to include stubs.  */
 +#define __need_GNU_STUBS_H
 +
 +/* System header to define __stub macros and hopefully few prototypes,
 +    which can conflict with char $ac_func (); below.
 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 +    <limits.h> exists even on freestanding compilers.  */
 +
 +#ifdef __STDC__
 +# include <limits.h>
 +#else
 +# include <assert.h>
 +#endif
 +
 +#undef $ac_func
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char $ac_func ();
 +/* The GNU C library defines this for functions which it implements
 +    to always fail with ENOSYS.  Some functions are actually named
 +    something starting with __ and the normal name is an alias.  */
 +#if defined __stub_$ac_func || defined __stub___$ac_func
 +choke me
 +#endif
 +
 +int
 +main ()
 +{
 +return $ac_func ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  eval "$as_ac_var=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifndef __GNUC__
 +choke me
 +#else
 +#undef $ac_func
 +/* Declare this function with same prototype as __builtin_$ac_func.
 +  This removes warning about conflicting type with builtin */
 +__typeof__(__builtin_$ac_func) $ac_func;
 +
 +__typeof__(__builtin_$ac_func) *f = $ac_func;
 +#endif
 +
 +int
 +main ()
 +{
 +return f != __builtin_$ac_func;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  eval "$as_ac_var=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      eval "$as_ac_var=no"
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +as_val=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +   if test "x$as_val" = x""yes; then
 +  cat >>confdefs.h <<_ACEOF
 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 +_ACEOF
 +
 +fi
 +done
 +
 +CFLAGS="$ac_save_CFLAGS"
 +
 +if test "$ac_cv_func_dlopen" = no
 +then
 +    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_lib_save_LIBS=$LIBS
 +LIBS="-ldl  $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char dlopen ();
 +int
 +main ()
 +{
 +return dlopen ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_dl_dlopen=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_dl_dlopen=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 +  cat >>confdefs.h <<\_ACEOF
 +#define HAVE_DLOPEN 1
 +_ACEOF
 + LIBDL="-ldl"
 +
 +fi
 +
 +fi
 +ac_wine_check_funcs_save_LIBS="$LIBS"
 +LIBS="$LIBS $LIBDL"
 +
 +for ac_func in dladdr
 +do
 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 +$as_echo_n "checking for $ac_func... " >&6; }
 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 +#define $ac_func innocuous_$ac_func
 +
 +/* Tell GNU C headers to include stubs.  */
 +#define __need_GNU_STUBS_H
 +
 +/* System header to define __stub macros and hopefully few prototypes,
 +    which can conflict with char $ac_func (); below.
 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 +    <limits.h> exists even on freestanding compilers.  */
 +
 +#ifdef __STDC__
 +# include <limits.h>
 +#else
 +# include <assert.h>
 +#endif
 +
 +#undef $ac_func
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char $ac_func ();
 +/* The GNU C library defines this for functions which it implements
 +    to always fail with ENOSYS.  Some functions are actually named
 +    something starting with __ and the normal name is an alias.  */
 +#if defined __stub_$ac_func || defined __stub___$ac_func
 +choke me
 +#endif
 +
 +int
 +main ()
 +{
 +return $ac_func ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  eval "$as_ac_var=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifndef __GNUC__
 +choke me
 +#else
 +#undef $ac_func
 +/* Declare this function with same prototype as __builtin_$ac_func.
 +  This removes warning about conflicting type with builtin */
 +__typeof__(__builtin_$ac_func) $ac_func;
 +
 +__typeof__(__builtin_$ac_func) *f = $ac_func;
 +#endif
 +
 +int
 +main ()
 +{
 +return f != __builtin_$ac_func;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  eval "$as_ac_var=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      eval "$as_ac_var=no"
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +as_val=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +   if test "x$as_val" = x""yes; then
 +  cat >>confdefs.h <<_ACEOF
 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 +_ACEOF
 +
 +fi
 +done
 +
 +LIBS="$ac_wine_check_funcs_save_LIBS"
 +
 +if test "$ac_cv_func_poll" = no
 +then
 +    { $as_echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
 +$as_echo_n "checking for poll in -lpoll... " >&6; }
 +if test "${ac_cv_lib_poll_poll+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_lib_save_LIBS=$LIBS
 +LIBS="-lpoll  $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char poll ();
 +int
 +main ()
 +{
 +return poll ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_poll_poll=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_poll_poll=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
 +$as_echo "$ac_cv_lib_poll_poll" >&6; }
 +if test "x$ac_cv_lib_poll_poll" = x""yes; then
 +  cat >>confdefs.h <<\_ACEOF
 +#define HAVE_POLL 1
 +_ACEOF
 + LIBPOLL="-lpoll"
 +
 +fi
 +
 +fi
 +
 +{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 +$as_echo_n "checking for library containing gethostbyname... " >&6; }
 +if test "${ac_cv_search_gethostbyname+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_func_search_save_LIBS=$LIBS
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char gethostbyname ();
 +int
 +main ()
 +{
 +return gethostbyname ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +for ac_lib in '' nsl; do
 +  if test -z "$ac_lib"; then
 +    ac_res="none required"
 +  else
 +    ac_res=-l$ac_lib
 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 +  fi
 +  rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_search_gethostbyname=$ac_res
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext
 +  if test "${ac_cv_search_gethostbyname+set}" = set; then
 +  break
 +fi
 +done
 +if test "${ac_cv_search_gethostbyname+set}" = set; then
 +  :
 +else
 +  ac_cv_search_gethostbyname=no
 +fi
 +rm conftest.$ac_ext
 +LIBS=$ac_func_search_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 +$as_echo "$ac_cv_search_gethostbyname" >&6; }
 +ac_res=$ac_cv_search_gethostbyname
 +if test "$ac_res" != no; then
 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 +
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking for library containing connect" >&5
 +$as_echo_n "checking for library containing connect... " >&6; }
 +if test "${ac_cv_search_connect+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_func_search_save_LIBS=$LIBS
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char connect ();
 +int
 +main ()
 +{
 +return connect ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +for ac_lib in '' socket; do
 +  if test -z "$ac_lib"; then
 +    ac_res="none required"
 +  else
 +    ac_res=-l$ac_lib
 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 +  fi
 +  rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_search_connect=$ac_res
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext
 +  if test "${ac_cv_search_connect+set}" = set; then
 +  break
 +fi
 +done
 +if test "${ac_cv_search_connect+set}" = set; then
 +  :
 +else
 +  ac_cv_search_connect=no
 +fi
 +rm conftest.$ac_ext
 +LIBS=$ac_func_search_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
 +$as_echo "$ac_cv_search_connect" >&6; }
 +ac_res=$ac_cv_search_connect
 +if test "$ac_res" != no; then
 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 +
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
 +$as_echo_n "checking for library containing inet_aton... " >&6; }
 +if test "${ac_cv_search_inet_aton+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_func_search_save_LIBS=$LIBS
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char inet_aton ();
 +int
 +main ()
 +{
 +return inet_aton ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +for ac_lib in '' resolv; do
 +  if test -z "$ac_lib"; then
 +    ac_res="none required"
 +  else
 +    ac_res=-l$ac_lib
 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 +  fi
 +  rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_search_inet_aton=$ac_res
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext
 +  if test "${ac_cv_search_inet_aton+set}" = set; then
 +  break
 +fi
 +done
 +if test "${ac_cv_search_inet_aton+set}" = set; then
 +  :
 +else
 +  ac_cv_search_inet_aton=no
 +fi
 +rm conftest.$ac_ext
 +LIBS=$ac_func_search_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
 +$as_echo "$ac_cv_search_inet_aton" >&6; }
 +ac_res=$ac_cv_search_inet_aton
 +if test "$ac_res" != no; then
 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 +
 +fi
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +for ac_func in \
 +      getaddrinfo \
 +      getnameinfo \
 +      getnetbyname \
 +      getprotobyname \
 +      getprotobynumber \
 +      getservbyport \
 +      inet_network \
 +      inet_ntop \
 +      inet_pton \
 +      sendmsg \
 +      socketpair \
 +
 +do
 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 +$as_echo_n "checking for $ac_func... " >&6; }
 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 +#define $ac_func innocuous_$ac_func
 +
 +/* Tell GNU C headers to include stubs.  */
 +#define __need_GNU_STUBS_H
 +
 +/* System header to define __stub macros and hopefully few prototypes,
 +    which can conflict with char $ac_func (); below.
 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 +    <limits.h> exists even on freestanding compilers.  */
 +
 +#ifdef __STDC__
 +# include <limits.h>
 +#else
 +# include <assert.h>
 +#endif
 +
 +#undef $ac_func
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char $ac_func ();
 +/* The GNU C library defines this for functions which it implements
 +    to always fail with ENOSYS.  Some functions are actually named
 +    something starting with __ and the normal name is an alias.  */
 +#if defined __stub_$ac_func || defined __stub___$ac_func
 +choke me
 +#endif
 +
 +int
 +main ()
 +{
 +return $ac_func ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  eval "$as_ac_var=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifndef __GNUC__
 +choke me
 +#else
 +#undef $ac_func
 +/* Declare this function with same prototype as __builtin_$ac_func.
 +  This removes warning about conflicting type with builtin */
 +__typeof__(__builtin_$ac_func) $ac_func;
 +
 +__typeof__(__builtin_$ac_func) *f = $ac_func;
 +#endif
 +
 +int
 +main ()
 +{
 +return f != __builtin_$ac_func;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  eval "$as_ac_var=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      eval "$as_ac_var=no"
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +as_val=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +   if test "x$as_val" = x""yes; then
 +  cat >>confdefs.h <<_ACEOF
 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 +_ACEOF
 +
 +fi
 +done
 +
 +
 +LDAPLIBS=""
 +
 +if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
 +then
 +    { $as_echo "$as_me:$LINENO: checking for LDAPSortKey" >&5
 +$as_echo_n "checking for LDAPSortKey... " >&6; }
 +if test "${ac_cv_type_LDAPSortKey+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_LDAPSortKey=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <ldap.h>
 +
 +int
 +main ()
 +{
 +if (sizeof (LDAPSortKey))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <ldap.h>
 +
 +int
 +main ()
 +{
 +if (sizeof ((LDAPSortKey)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_LDAPSortKey=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_LDAPSortKey" >&5
 +$as_echo "$ac_cv_type_LDAPSortKey" >&6; }
 +if test "x$ac_cv_type_LDAPSortKey" = x""yes; then
 +  { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
 +$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
 +if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_lib_save_LIBS=$LIBS
 +LIBS="-lldap_r $LIBPTHREAD $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char ldap_initialize ();
 +int
 +main ()
 +{
 +return ldap_initialize ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_ldap_r_ldap_initialize=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_ldap_r_ldap_initialize=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
 +$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
 +if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then
 +  { $as_echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
 +$as_echo_n "checking for ber_init in -llber... " >&6; }
 +if test "${ac_cv_lib_lber_ber_init+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_check_lib_save_LIBS=$LIBS
 +LIBS="-llber $LIBPTHREAD $LIBS"
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char ber_init ();
 +int
 +main ()
 +{
 +return ber_init ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  ac_cv_lib_lber_ber_init=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_lib_lber_ber_init=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +LIBS=$ac_check_lib_save_LIBS
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
 +$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
 +if test "x$ac_cv_lib_lber_ber_init" = x""yes; then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define HAVE_LDAP 1
 +_ACEOF
 +
 +                 LDAPLIBS="-lldap_r -llber"
 +fi
 +
 +fi
 +
 +fi
 +
 +    ac_wine_check_funcs_save_LIBS="$LIBS"
 +LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
 +
 +
 +
 +
 +
 +
 +
 +
 +for ac_func in \
 +      ldap_count_references \
 +      ldap_first_reference \
 +      ldap_next_reference \
 +      ldap_parse_reference \
 +      ldap_parse_sort_control \
 +      ldap_parse_sortresponse_control \
 +      ldap_parse_vlv_control \
 +      ldap_parse_vlvresponse_control
 +do
 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 +$as_echo_n "checking for $ac_func... " >&6; }
 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 +#define $ac_func innocuous_$ac_func
 +
 +/* Tell GNU C headers to include stubs.  */
 +#define __need_GNU_STUBS_H
 +
 +/* System header to define __stub macros and hopefully few prototypes,
 +    which can conflict with char $ac_func (); below.
 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 +    <limits.h> exists even on freestanding compilers.  */
 +
 +#ifdef __STDC__
 +# include <limits.h>
 +#else
 +# include <assert.h>
 +#endif
 +
 +#undef $ac_func
 +
 +/* Override any GCC internal prototype to avoid an error.
 +   Use char because int might match the return type of a GCC
 +   builtin and then its argument prototype would still apply.  */
 +#ifdef __cplusplus
 +extern "C"
 +#endif
 +char $ac_func ();
 +/* The GNU C library defines this for functions which it implements
 +    to always fail with ENOSYS.  Some functions are actually named
 +    something starting with __ and the normal name is an alias.  */
 +#if defined __stub_$ac_func || defined __stub___$ac_func
 +choke me
 +#endif
 +
 +int
 +main ()
 +{
 +return $ac_func ();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  eval "$as_ac_var=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifndef __GNUC__
 +choke me
 +#else
 +#undef $ac_func
 +/* Declare this function with same prototype as __builtin_$ac_func.
 +  This removes warning about conflicting type with builtin */
 +__typeof__(__builtin_$ac_func) $ac_func;
 +
 +__typeof__(__builtin_$ac_func) *f = $ac_func;
 +#endif
 +
 +int
 +main ()
 +{
 +return f != __builtin_$ac_func;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  eval "$as_ac_var=yes"
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      eval "$as_ac_var=no"
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +ac_res=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +             { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 +$as_echo "$ac_res" >&6; }
 +as_val=`eval 'as_val=${'$as_ac_var'}
 +               $as_echo "$as_val"'`
 +   if test "x$as_val" = x""yes; then
 +  cat >>confdefs.h <<_ACEOF
 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 +_ACEOF
 +
 +fi
 +done
 +
 +LIBS="$ac_wine_check_funcs_save_LIBS"
 +fi
 +if test "x$LDAPLIBS" = "x"; then
 +  case "x$with_ldap" in
 +  x)   wine_notices="$wine_notices|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
 +  xno) ;;
 +  *)   { { $as_echo "$as_me:$LINENO: error: libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
 +This is an error since --with-ldap was requested." >&5
 +$as_echo "$as_me: error: libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
 +This is an error since --with-ldap was requested." >&2;}
 +   { (exit 1); exit 1; }; } ;;
 +esac
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking whether mkdir takes only one argument" >&5
 +$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
 +if test "${wine_cv_one_arg_mkdir+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/stat.h>
 +int
 +main ()
 +{
 +mkdir("foo");
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  wine_cv_one_arg_mkdir=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      wine_cv_one_arg_mkdir=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $wine_cv_one_arg_mkdir" >&5
 +$as_echo "$wine_cv_one_arg_mkdir" >&6; }
 +if test "$wine_cv_one_arg_mkdir" = "yes"
 +then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define HAVE_ONE_ARG_MKDIR 1
 +_ACEOF
 +
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 +if test "${ac_cv_c_const+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +int
 +main ()
 +{
 +/* FIXME: Include the comments suggested by Paul. */
 +#ifndef __cplusplus
 +  /* Ultrix mips cc rejects this.  */
 +  typedef int charset[2];
 +  const charset cs;
 +  /* SunOS 4.1.1 cc rejects this.  */
 +  char const *const *pcpcc;
 +  char **ppc;
 +  /* NEC SVR4.0.2 mips cc rejects this.  */
 +  struct point {int x, y;};
 +  static struct point const zero = {0,0};
 +  /* AIX XL C 1.02.0.0 rejects this.
 +     It does not let you subtract one const X* pointer from another in
 +     an arm of an if-expression whose if-part is not a constant
 +     expression */
 +  const char *g = "string";
 +  pcpcc = &g + (g ? g-g : 0);
 +  /* HPUX 7.0 cc rejects these. */
 +  ++pcpcc;
 +  ppc = (char**) pcpcc;
 +  pcpcc = (char const *const *) ppc;
 +  { /* SCO 3.2v4 cc rejects this.  */
 +    char *t;
 +    char const *s = 0 ? (char *) 0 : (char const *) 0;
 +
 +    *t++ = 0;
 +    if (s) return 0;
 +  }
 +  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 +    int x[] = {25, 17};
 +    const int *foo = &x[0];
 +    ++foo;
 +  }
 +  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 +    typedef const int *iptr;
 +    iptr p = 0;
 +    ++p;
 +  }
 +  { /* AIX XL C 1.02.0.0 rejects this saying
 +       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 +    struct s { int j; const int *ap[3]; };
 +    struct s *b; b->j = 5;
 +  }
 +  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 +    const int foo = 10;
 +    if (!foo) return 0;
 +  }
 +  return !cs[0] && !zero.x;
 +#endif
 +
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_c_const=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_c_const=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 +$as_echo "$ac_cv_c_const" >&6; }
 +if test $ac_cv_c_const = no; then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define const /**/
 +_ACEOF
 +
 +fi
 +
 +{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 +$as_echo_n "checking for inline... " >&6; }
 +if test "${ac_cv_c_inline+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_c_inline=no
 +for ac_kw in inline __inline__ __inline; do
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifndef __cplusplus
 +typedef int foo_t;
 +static $ac_kw foo_t static_foo () {return 0; }
 +$ac_kw foo_t foo () {return 0; }
 +#endif
 +
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_c_inline=$ac_kw
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +  test "$ac_cv_c_inline" != no && break
 +done
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 +$as_echo "$ac_cv_c_inline" >&6; }
 +
 +
 +case $ac_cv_c_inline in
 +  inline | yes) ;;
 +  *)
 +    case $ac_cv_c_inline in
 +      no) ac_val=;;
 +      *) ac_val=$ac_cv_c_inline;;
 +    esac
 +    cat >>confdefs.h <<_ACEOF
 +#ifndef __cplusplus
 +#define inline $ac_val
 +#endif
 +_ACEOF
 +    ;;
 +esac
 +
 +{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
 +$as_echo_n "checking for mode_t... " >&6; }
 +if test "${ac_cv_type_mode_t+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_mode_t=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof (mode_t))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof ((mode_t)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_mode_t=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 +$as_echo "$ac_cv_type_mode_t" >&6; }
 +if test "x$ac_cv_type_mode_t" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_MODE_T 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
 +$as_echo_n "checking for off_t... " >&6; }
 +if test "${ac_cv_type_off_t+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_off_t=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof (off_t))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof ((off_t)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_off_t=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 +$as_echo "$ac_cv_type_off_t" >&6; }
 +if test "x$ac_cv_type_off_t" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_OFF_T 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
 +$as_echo_n "checking for pid_t... " >&6; }
 +if test "${ac_cv_type_pid_t+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_pid_t=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof (pid_t))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof ((pid_t)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_pid_t=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 +$as_echo "$ac_cv_type_pid_t" >&6; }
 +if test "x$ac_cv_type_pid_t" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_PID_T 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
 +$as_echo_n "checking for size_t... " >&6; }
 +if test "${ac_cv_type_size_t+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_size_t=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof (size_t))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof ((size_t)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_size_t=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 +$as_echo "$ac_cv_type_size_t" >&6; }
 +if test "x$ac_cv_type_size_t" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_SIZE_T 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
 +$as_echo_n "checking for ssize_t... " >&6; }
 +if test "${ac_cv_type_ssize_t+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_ssize_t=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof (ssize_t))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof ((ssize_t)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_ssize_t=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
 +$as_echo "$ac_cv_type_ssize_t" >&6; }
 +if test "x$ac_cv_type_ssize_t" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_SSIZE_T 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for long long" >&5
 +$as_echo_n "checking for long long... " >&6; }
 +if test "${ac_cv_type_long_long+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_long_long=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof (long long))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof ((long long)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_long_long=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 +$as_echo "$ac_cv_type_long_long" >&6; }
 +if test "x$ac_cv_type_long_long" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_LONG_LONG 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
 +$as_echo_n "checking for fsblkcnt_t... " >&6; }
 +if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_fsblkcnt_t=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof (fsblkcnt_t))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof ((fsblkcnt_t)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_fsblkcnt_t=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
 +$as_echo "$ac_cv_type_fsblkcnt_t" >&6; }
 +if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_FSBLKCNT_T 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
 +$as_echo_n "checking for fsfilcnt_t... " >&6; }
 +if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_fsfilcnt_t=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof (fsfilcnt_t))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +$ac_includes_default
 +int
 +main ()
 +{
 +if (sizeof ((fsfilcnt_t)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_fsfilcnt_t=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
 +$as_echo "$ac_cv_type_fsfilcnt_t" >&6; }
 +if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_FSFILCNT_T 1
 +_ACEOF
 +
 +
 +fi
 +
 +{ $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
 +$as_echo_n "checking for sigset_t... " >&6; }
 +if test "${ac_cv_type_sigset_t+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_sigset_t=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#include <signal.h>
 +
 +int
 +main ()
 +{
 +if (sizeof (sigset_t))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#include <signal.h>
 +
 +int
 +main ()
 +{
 +if (sizeof ((sigset_t)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_sigset_t=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
 +$as_echo "$ac_cv_type_sigset_t" >&6; }
 +if test "x$ac_cv_type_sigset_t" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_SIGSET_T 1
 +_ACEOF
 +
 +
 +fi
 +
 +{ $as_echo "$as_me:$LINENO: checking for request_sense" >&5
 +$as_echo_n "checking for request_sense... " >&6; }
 +if test "${ac_cv_type_request_sense+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_request_sense=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <linux/cdrom.h>
 +
 +int
 +main ()
 +{
 +if (sizeof (request_sense))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <linux/cdrom.h>
 +
 +int
 +main ()
 +{
 +if (sizeof ((request_sense)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_request_sense=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
 +$as_echo "$ac_cv_type_request_sense" >&6; }
 +if test "x$ac_cv_type_request_sense" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_REQUEST_SENSE 1
 +_ACEOF
 +
 +
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking for struct xinpgen" >&5
 +$as_echo_n "checking for struct xinpgen... " >&6; }
 +if test "${ac_cv_type_struct_xinpgen+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  ac_cv_type_struct_xinpgen=no
 +cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_SOCKET_H
 +#include <sys/socket.h>
 +#endif
 +#ifdef HAVE_SYS_SOCKETVAR_H
 +#include <sys/socketvar.h>
 +#endif
 +#ifdef HAVE_NET_ROUTE_H
 +#include <net/route.h>
 +#endif
 +#ifdef HAVE_NETINET_IN_H
 +#include <netinet/in.h>
 +#endif
 +#ifdef HAVE_NETINET_IN_SYSTM_H
 +#include <netinet/in_systm.h>
 +#endif
 +#ifdef HAVE_NETINET_IP_H
 +#include <netinet/ip.h>
 +#endif
 +#ifdef HAVE_NETINET_IN_PCB_H
 +#include <netinet/in_pcb.h>
 +#endif
 +
 +int
 +main ()
 +{
 +if (sizeof (struct xinpgen))
 +       return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_SOCKET_H
 +#include <sys/socket.h>
 +#endif
 +#ifdef HAVE_SYS_SOCKETVAR_H
 +#include <sys/socketvar.h>
 +#endif
 +#ifdef HAVE_NET_ROUTE_H
 +#include <net/route.h>
 +#endif
 +#ifdef HAVE_NETINET_IN_H
 +#include <netinet/in.h>
 +#endif
 +#ifdef HAVE_NETINET_IN_SYSTM_H
 +#include <netinet/in_systm.h>
 +#endif
 +#ifdef HAVE_NETINET_IP_H
 +#include <netinet/ip.h>
 +#endif
 +#ifdef HAVE_NETINET_IN_PCB_H
 +#include <netinet/in_pcb.h>
 +#endif
 +
 +int
 +main ()
 +{
 +if (sizeof ((struct xinpgen)))
 +        return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  :
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_type_struct_xinpgen=yes
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_xinpgen" >&5
 +$as_echo "$ac_cv_type_struct_xinpgen" >&6; }
 +if test "x$ac_cv_type_struct_xinpgen" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_STRUCT_XINPGEN 1
 +_ACEOF
 +
 +
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
 +$as_echo_n "checking for struct ff_effect.direction... " >&6; }
 +if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifdef HAVE_LINUX_INPUT_H
 +#include <linux/input.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct ff_effect ac_aggr;
 +if (ac_aggr.direction)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_ff_effect_direction=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#ifdef HAVE_LINUX_INPUT_H
 +#include <linux/input.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct ff_effect ac_aggr;
 +if (sizeof ac_aggr.direction)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_ff_effect_direction=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_member_struct_ff_effect_direction=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
 +$as_echo "$ac_cv_member_struct_ff_effect_direction" >&6; }
 +if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
 +_ACEOF
 +
 +
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking for sigaddset" >&5
 +$as_echo_n "checking for sigaddset... " >&6; }
 +if test "${wine_cv_have_sigaddset+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <signal.h>
 +int
 +main ()
 +{
 +sigset_t set; sigaddset(&set,SIGTERM);
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  wine_cv_have_sigaddset=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      wine_cv_have_sigaddset=no
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
 +$as_echo "$wine_cv_have_sigaddset" >&6; }
 +if test "$wine_cv_have_sigaddset" = "yes"
 +then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define HAVE_SIGADDSET 1
 +_ACEOF
 +
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
 +$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
 +if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <netdb.h>
 +int
 +main ()
 +{
 +
 +    char *name=0;
 +    struct hostent he;
 +    struct hostent *result;
 +    char *buf=0;
 +    int bufsize=0;
 +    int res,errnr;
 +    char *addr=0;
 +    int addrlen=0;
 +    int addrtype=0;
 +    res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
 +    res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
 +
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext conftest$ac_exeext
 +if { (ac_try="$ac_link"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_link") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest$ac_exeext && {
 +       test "$cross_compiling" = yes ||
 +       $as_test_x conftest$ac_exeext
 +       }; then
 +  wine_cv_linux_gethostbyname_r_6=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      wine_cv_linux_gethostbyname_r_6=no
 +
 +fi
 +
 +rm -rf conftest.dSYM
 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 +      conftest$ac_exeext conftest.$ac_ext
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
 +$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
 +   if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
 +   then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
 +_ACEOF
 +
 +   fi
 +
 +if test "$ac_cv_header_linux_joystick_h" = "yes"
 +then
 +   { $as_echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
 +$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
 +if test "${wine_cv_linux_joystick_22_api+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +
 +      #include <sys/ioctl.h>
 +      #include <sys/types.h>
 +      #include <linux/joystick.h>
 +
 +      struct js_event blub;
 +      #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
 +      #error "no 2.2 header"
 +      #endif
 +
 +int
 +main ()
 +{
 +/*empty*/
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  wine_cv_linux_joystick_22_api=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      wine_cv_linux_joystick_22_api=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
 +$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
 +   if test "$wine_cv_linux_joystick_22_api" = "yes"
 +   then
 +
 +cat >>confdefs.h <<\_ACEOF
 +#define HAVE_LINUX_22_JOYSTICK_API 1
 +_ACEOF
 +
 +   fi
 +fi
 +
 +
 +{ $as_echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
 +$as_echo_n "checking for struct statfs.f_bfree... " >&6; }
 +if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (ac_aggr.f_bfree)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_bfree=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (sizeof ac_aggr.f_bfree)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_bfree=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_member_struct_statfs_f_bfree=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
 +$as_echo "$ac_cv_member_struct_statfs_f_bfree" >&6; }
 +if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_STRUCT_STATFS_F_BFREE 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
 +$as_echo_n "checking for struct statfs.f_bavail... " >&6; }
 +if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (ac_aggr.f_bavail)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_bavail=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (sizeof ac_aggr.f_bavail)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_bavail=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_member_struct_statfs_f_bavail=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
 +$as_echo "$ac_cv_member_struct_statfs_f_bavail" >&6; }
 +if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_STRUCT_STATFS_F_BAVAIL 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
 +$as_echo_n "checking for struct statfs.f_frsize... " >&6; }
 +if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (ac_aggr.f_frsize)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_frsize=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (sizeof ac_aggr.f_frsize)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_frsize=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_member_struct_statfs_f_frsize=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
 +$as_echo "$ac_cv_member_struct_statfs_f_frsize" >&6; }
 +if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_STRUCT_STATFS_F_FRSIZE 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
 +$as_echo_n "checking for struct statfs.f_ffree... " >&6; }
 +if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (ac_aggr.f_ffree)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_ffree=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (sizeof ac_aggr.f_ffree)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_ffree=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_member_struct_statfs_f_ffree=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
 +$as_echo "$ac_cv_member_struct_statfs_f_ffree" >&6; }
 +if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_STRUCT_STATFS_F_FFREE 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
 +$as_echo_n "checking for struct statfs.f_favail... " >&6; }
 +if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (ac_aggr.f_favail)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_favail=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (sizeof ac_aggr.f_favail)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_favail=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_member_struct_statfs_f_favail=no
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +fi
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
 +$as_echo "$ac_cv_member_struct_statfs_f_favail" >&6; }
 +if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_STRUCT_STATFS_F_FAVAIL 1
 +_ACEOF
 +
 +
 +fi
 +{ $as_echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
 +$as_echo_n "checking for struct statfs.f_namelen... " >&6; }
 +if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
 +  $as_echo_n "(cached) " >&6
 +else
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (ac_aggr.f_namelen)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_namelen=yes
 +else
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
 +#include <sys/types.h>
 +#ifdef HAVE_SYS_PARAM_H
 +# include <sys/param.h>
 +#endif
 +#ifdef HAVE_SYS_MOUNT_H
 +# include <sys/mount.h>
 +#endif
 +#ifdef HAVE_SYS_VFS_H
 +# include <sys/vfs.h>
 +#endif
 +#ifdef HAVE_SYS_STATFS_H
 +# include <sys/statfs.h>
 +#endif
 +
 +int
 +main ()
 +{
 +static struct statfs ac_aggr;
 +if (sizeof ac_aggr.f_namelen)
 +return 0;
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +rm -f conftest.$ac_objext
 +if { (ac_try="$ac_compile"
 +case "(($ac_try" in
 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 +  *) ac_try_echo=$ac_try;;
 +esac
 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 +$as_echo "$ac_try_echo") >&5
 +  (eval "$ac_compile") 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } && {
 +       test -z "$ac_c_werror_flag" ||
 +       test ! -s conftest.err
 +       } && test -s conftest.$ac_objext; then
 +  ac_cv_member_struct_statfs_f_namelen=yes
  else
 -  ac_cv_lib_dl_dlopen=no
 -fi
 -rm -f core conftest.err conftest.$ac_objext \
 -    conftest$ac_exeext conftest.$ac_ext
 -LIBS=$ac_check_lib_save_LIBS
 +  $as_echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
 +      ac_cv_member_struct_statfs_f_namelen=no
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 -  $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
 - LIBDL="-ldl"
  
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  fi
  
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  fi
 -ac_wine_check_funcs_save_LIBS="$LIBS"
 -LIBS="$LIBS $LIBDL"
 -for ac_func in dladdr
 -do :
 -  ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
 -if test "x$ac_cv_func_dladdr" = x""yes; then :
 -  cat >>confdefs.h <<_ACEOF
 -#define HAVE_DLADDR 1
 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
 +$as_echo "$ac_cv_member_struct_statfs_f_namelen" >&6; }
 +if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then
 +
 +cat >>confdefs.h <<_ACEOF
 +#define HAVE_STRUCT_STATFS_F_NAMELEN 1
  _ACEOF
  
 +
  fi
 -done
  
 -LIBS="$ac_wine_check_funcs_save_LIBS"
  
 -if test "$ac_cv_func_poll" = no
 -then
 -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
 -$as_echo_n "checking for poll in -lpoll... " >&6; }
 -if test "${ac_cv_lib_poll_poll+set}" = set; then :
 +{ $as_echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
 +$as_echo_n "checking for struct statvfs.f_blocks... " >&6; }
 +if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
    $as_echo_n "(cached) " >&6
  else
 -  ac_check_lib_save_LIBS=$LIBS
 -LIBS="-lpoll  $LIBS"
 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +  cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
 -
 -/* Override any GCC internal prototype to avoid an error.
 -   Use char because int might match the return type of a GCC
 -   builtin and then its argument prototype would still apply.  */
 -#ifdef __cplusplus
 -extern "C"
 +#ifdef HAVE_SYS_STATVFS_H
 +#include <sys/statvfs.h>
  #endif
 -char poll ();
 +
  int
  main ()
  {
@@@ -29898,8 -18560,8 +30854,8 @@@ exec 6>&
  # report actual input values of CONFIG_FILES etc. instead of their
  # values after options handling.
  ac_log="
- This file was extended by Wine $as_me 1.1.26, which was
+ This file was extended by Wine $as_me 1.1.32, which was
 -generated by GNU Autoconf 2.64.  Invocation command line was
 +generated by GNU Autoconf 2.63.  Invocation command line was
  
    CONFIG_FILES    = $CONFIG_FILES
    CONFIG_HEADERS  = $CONFIG_HEADERS
@@@ -29961,11 -18625,11 +30917,11 @@@ Report bugs to <bug-autoconf@gnu.org>.
  _ACEOF
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_cs_version="\\
- Wine config.status 1.1.26
+ Wine config.status 1.1.32
 -configured by $0, generated by GNU Autoconf 2.64,
 +configured by $0, generated by GNU Autoconf 2.63,
    with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  
 -Copyright (C) 2009 Free Software Foundation, Inc.
 +Copyright (C) 2008 Free Software Foundation, Inc.
  This config.status script is free software; the Free Software Foundation
  gives unlimited permission to copy, distribute and modify it."
  
diff --cc configure.ac
Simple merge
index 0b9c9294cb703677b7e80dde3dc2be872b63ed70,45bdad58b24e66b3f09fa24ceb19d4ea5384eb54..0925ea940841555b49d170e05189eb60668a1122
@@@ -7,11 -7,9 +7,9 @@@ MODULE    = gdi32.dl
  IMPORTLIB = gdi32
  IMPORTS   = advapi32 kernel32 ntdll
  EXTRAINCL = @FREETYPEINCL@ @FONTCONFIGINCL@
 -EXTRALIBS = @CARBONLIB@
 +EXTRALIBS = @CARBONLIB@ @FREETYPELIBS@ @FONTCONFIGLIBS@
  
- SPEC_SRCS16 = \
-       gdi.exe.spec \
-       wing.spec
+ SPEC_SRCS16 = gdi.exe.spec
  
  C_SRCS = \
        bidi.c \
Simple merge
Simple merge