From d94475bdb2dadcd3df6e47774d37a74cf8b7731c Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Mon, 20 Sep 1999 18:42:46 +0000 Subject: [PATCH] Added the possibility to use DGA 2.0. --- configure | 359 +++++++++++++++++++++++------------------ configure.in | 3 +- include/acconfig.h | 3 + include/config.h.in | 3 + include/ts_xf86dga2.h | 44 +++++ tools/make_X11wrappers | 67 +++++++- tsx11/Makefile.in | 1 + tsx11/X11_calls | 18 +++ tsx11/ts_xf86dga2.c | 202 +++++++++++++++++++++++ 9 files changed, 537 insertions(+), 163 deletions(-) create mode 100644 include/ts_xf86dga2.h create mode 100644 tsx11/ts_xf86dga2.c diff --git a/configure b/configure index 57d13bbf5e9..a536194601d 100755 --- a/configure +++ b/configure @@ -2935,9 +2935,9 @@ done if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes" then - echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 -echo "configure:2940: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 -ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'` + echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 +echo "configure:2940: checking for XDGAQueryExtension in -lXxf86dga" >&5 +ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2947,6 +2947,49 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_LIBXXF86DGA2 1 +EOF + X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" +else + echo "$ac_t""no" 1>&6 +fi + + echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 +echo "configure:2983: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 +ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2984,17 +3027,17 @@ fi do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2988: checking for $ac_hdr" >&5 +echo "configure:3031: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -3023,7 +3066,7 @@ done if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" then echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6 -echo "configure:3027: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 +echo "configure:3070: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3031,7 +3074,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3071,17 +3114,17 @@ fi do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3075: checking for $ac_hdr" >&5 +echo "configure:3118: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -3110,19 +3153,19 @@ done if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" then echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6 -echo "configure:3114: checking "for up-to-date Mesa version"" >&5 +echo "configure:3157: checking "for up-to-date Mesa version"" >&5 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { GLenum test = GL_UNSIGNED_SHORT_5_6_5; ; return 0; } EOF -if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* wine_cv_mesa_version_OK="yes" else @@ -3141,7 +3184,7 @@ echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6 if test "$wine_cv_mesa_version_OK" = "yes" then echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6 -echo "configure:3145: checking for glXCreateContext in -lGL" >&5 +echo "configure:3188: checking for glXCreateContext in -lGL" >&5 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3149,7 +3192,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lGL $X_LIBS -lXext -lX11 -lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3186,7 +3229,7 @@ fi if test "$ac_cv_lib_GL_glXCreateContext" = "no" then echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6 -echo "configure:3190: checking for glXCreateContext in -lMesaGL" >&5 +echo "configure:3233: checking for glXCreateContext in -lMesaGL" >&5 ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3194,7 +3237,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3243,17 +3286,17 @@ for ac_hdr in ncurses.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3247: checking for $ac_hdr" >&5 +echo "configure:3290: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -3282,7 +3325,7 @@ done if test "$ac_cv_header_ncurses_h" = "yes" then echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6 -echo "configure:3286: checking for waddch in -lncurses" >&5 +echo "configure:3329: checking for waddch in -lncurses" >&5 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3290,7 +3333,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3332,7 +3375,7 @@ fi if test "$ac_cv_lib_ncurses_waddch" = "yes" then echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6 -echo "configure:3336: checking for resizeterm in -lncurses" >&5 +echo "configure:3379: checking for resizeterm in -lncurses" >&5 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3340,7 +3383,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3375,7 +3418,7 @@ else fi echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6 -echo "configure:3379: checking for getbkgd in -lncurses" >&5 +echo "configure:3422: checking for getbkgd in -lncurses" >&5 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3383,7 +3426,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3422,17 +3465,17 @@ else do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3426: checking for $ac_hdr" >&5 +echo "configure:3469: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -3461,7 +3504,7 @@ done if test "$ac_cv_header_curses_h" = "yes" then echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6 -echo "configure:3465: checking for waddch in -lcurses" >&5 +echo "configure:3508: checking for waddch in -lcurses" >&5 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3469,7 +3512,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3508,7 +3551,7 @@ else fi echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6 -echo "configure:3512: checking for resizeterm in -lcurses" >&5 +echo "configure:3555: checking for resizeterm in -lcurses" >&5 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3516,7 +3559,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3551,7 +3594,7 @@ else fi echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6 -echo "configure:3555: checking for getbkgd in -lcurses" >&5 +echo "configure:3598: checking for getbkgd in -lcurses" >&5 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3559,7 +3602,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3597,12 +3640,12 @@ fi fi echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6 -echo "configure:3601: checking "for GNU style IPX support"" >&5 +echo "configure:3644: checking "for GNU style IPX support"" >&5 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3610,7 +3653,7 @@ int main() { ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX ; return 0; } EOF -if { (eval echo configure:3614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_IPX_GNU 1 @@ -3632,12 +3675,12 @@ echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6 if test "$ac_cv_c_ipx_gnu" = "no" then echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6 -echo "configure:3636: checking "for linux style IPX support"" >&5 +echo "configure:3679: checking "for linux style IPX support"" >&5 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3646,7 +3689,7 @@ int main() { ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX ; return 0; } EOF -if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_IPX_LINUX 1 @@ -3670,17 +3713,17 @@ for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3674: checking for $ac_hdr" >&5 +echo "configure:3717: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -3708,12 +3751,12 @@ done echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6 -echo "configure:3712: checking "for Open Sound System"" >&5 +echo "configure:3755: checking "for Open Sound System"" >&5 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_opensoundsystem="yes" else @@ -3757,12 +3800,12 @@ EOF fi echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6 -echo "configure:3761: checking "for Open Sound System/MIDI interface"" >&5 +echo "configure:3804: checking "for Open Sound System/MIDI interface"" >&5 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_opensoundsystem_midi="yes" else @@ -3812,7 +3855,7 @@ if test "x${GCC}" = "xyes" then CFLAGS="$CFLAGS -Wall" echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6 -echo "configure:3816: checking "for gcc strength-reduce bug"" >&5 +echo "configure:3859: checking "for gcc strength-reduce bug"" >&5 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3820,7 +3863,7 @@ else ac_cv_c_gcc_strength_bug="yes" else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_c_gcc_strength_bug="no" else @@ -3854,7 +3897,7 @@ fi echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6 -echo "configure:3858: checking "whether external symbols need an underscore prefix"" >&5 +echo "configure:3901: checking "whether external symbols need an underscore prefix"" >&5 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3866,14 +3909,14 @@ _ac_test: .long 0 EOF cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_c_extern_prefix="yes" else @@ -3897,7 +3940,7 @@ fi echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6 -echo "configure:3901: checking "whether assembler accepts .string"" >&5 +echo "configure:3944: checking "whether assembler accepts .string"" >&5 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3907,14 +3950,14 @@ cat > conftest_asm.s < conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_c_asm_string="yes" else @@ -3943,21 +3986,21 @@ LDSHARED="" if test "$LIB_TARGET" = "libwine.so.1.0" then echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6 -echo "configure:3947: checking "whether we can build a Linux dll"" >&5 +echo "configure:3990: checking "whether we can build a Linux dll"" >&5 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else saved_cflags=$CFLAGS CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_c_dll_linux="yes" else @@ -3979,21 +4022,21 @@ echo "$ac_t""$ac_cv_c_dll_linux" 1>&6 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so" else echo $ac_n "checking "whether we can build a UnixWare dll"""... $ac_c" 1>&6 -echo "configure:3983: checking "whether we can build a UnixWare dll"" >&5 +echo "configure:4026: checking "whether we can build a UnixWare dll"" >&5 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else saved_cflags=$CFLAGS CFLAGS="$CFLAGS -fPIC -Wl,-G,conftest.so.1.0" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_c_dll_unixware="yes" else @@ -4015,21 +4058,21 @@ echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6 LDSHARED="\$(CC) -Wl,-G,-h,/usr/local/lib/libwine.so" else echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6 -echo "configure:4019: checking "whether we can build a NetBSD dll"" >&5 +echo "configure:4062: checking "whether we can build a NetBSD dll"" >&5 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else saved_cflags=$CFLAGS CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_c_dll_netbsd="yes" else @@ -4064,7 +4107,7 @@ fi wine_cv_libc_reentrant=no echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6 -echo "configure:4068: checking "for reentrant libc: __errno_location"" >&5 +echo "configure:4111: checking "for reentrant libc: __errno_location"" >&5 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4072,14 +4115,14 @@ else wine_cv_libc_r__errno_location=yes else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then wine_cv_libc_r__errno_location=yes else @@ -4104,7 +4147,7 @@ EOF wine_cv_libc_reentrant=__errno_location fi echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6 -echo "configure:4108: checking "for reentrant libc: __error"" >&5 +echo "configure:4151: checking "for reentrant libc: __error"" >&5 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4112,14 +4155,14 @@ else wine_cv_libc_r__error=yes else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then wine_cv_libc_r__error=yes else @@ -4144,7 +4187,7 @@ EOF wine_cv_libc_reentrant=__error fi echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6 -echo "configure:4148: checking "for reentrant libc: ___errno"" >&5 +echo "configure:4191: checking "for reentrant libc: ___errno"" >&5 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4152,14 +4195,14 @@ else wine_cv_libc_r___errno=yes else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then wine_cv_libc_r___errno=yes else @@ -4184,7 +4227,7 @@ EOF wine_cv_libc_reentrant=___errno fi echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6 -echo "configure:4188: checking "for reentrant libc: __thr_errno"" >&5 +echo "configure:4231: checking "for reentrant libc: __thr_errno"" >&5 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4192,14 +4235,14 @@ else wine_cv_libc_r__thr_errno=yes else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then wine_cv_libc_r__thr_errno=yes else @@ -4235,7 +4278,7 @@ fi if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no" then echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6 -echo "configure:4239: checking "for reentrant X libraries"" >&5 +echo "configure:4282: checking "for reentrant X libraries"" >&5 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4283,19 +4326,19 @@ fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:4287: checking for working alloca.h" >&5 +echo "configure:4330: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -4316,12 +4359,12 @@ EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:4320: checking for alloca" >&5 +echo "configure:4363: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -4376,12 +4419,12 @@ EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:4380: checking whether alloca needs Cray hooks" >&5 +echo "configure:4423: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4410: checking for $ac_func" >&5 +echo "configure:4453: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4461,7 +4504,7 @@ done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:4465: checking stack direction for C alloca" >&5 +echo "configure:4508: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4469,7 +4512,7 @@ else ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -4529,12 +4572,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4533: checking for $ac_func" >&5 +echo "configure:4576: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4620,17 +4663,17 @@ for ac_hdr in \ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4624: checking for $ac_hdr" >&5 +echo "configure:4667: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -4657,12 +4700,12 @@ fi done echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 -echo "configure:4661: checking whether stat file-mode macros are broken" >&5 +echo "configure:4704: checking whether stat file-mode macros are broken" >&5 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -4715,12 +4758,12 @@ fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:4719: checking for working const" >&5 +echo "configure:4762: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -4790,21 +4833,21 @@ EOF fi echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:4794: checking for inline" >&5 +echo "configure:4837: checking for inline" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -4830,12 +4873,12 @@ EOF esac echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:4834: checking for ANSI C header files" >&5 +echo "configure:4877: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -4843,7 +4886,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -4860,7 +4903,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -4878,7 +4921,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -4899,7 +4942,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -4910,7 +4953,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then : else @@ -4934,12 +4977,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:4938: checking for size_t" >&5 +echo "configure:4981: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -4967,7 +5010,7 @@ EOF fi echo $ac_n "checking size of long long""... $ac_c" 1>&6 -echo "configure:4971: checking size of long long" >&5 +echo "configure:5014: checking size of long long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4975,7 +5018,7 @@ else ac_cv_sizeof_long_long=0 else cat > conftest.$ac_ext < main() @@ -4986,7 +5029,7 @@ main() exit(0); } EOF -if { (eval echo configure:4990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long_long=`cat conftestval` else @@ -5009,12 +5052,12 @@ EOF if test "$ac_cv_header_linux_joystick_h" = "yes" then echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6 -echo "configure:5013: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5 +echo "configure:5056: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5026,7 +5069,7 @@ int main() { /*empty*/ ; return 0; } EOF -if { (eval echo configure:5030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* wine_cv_linux_joystick_22_api=yes else @@ -5053,12 +5096,12 @@ fi if test "$ac_cv_header_sys_vfs_h" = "yes" then echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6 -echo "configure:5057: checking "whether sys/vfs.h defines statfs"" >&5 +echo "configure:5100: checking "whether sys/vfs.h defines statfs"" >&5 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5075,7 +5118,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* wine_cv_sys_vfs_has_statfs=yes else @@ -5102,12 +5145,12 @@ fi if test "$ac_cv_header_sys_statfs_h" = "yes" then echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6 -echo "configure:5106: checking "whether sys/statfs.h defines statfs"" >&5 +echo "configure:5149: checking "whether sys/statfs.h defines statfs"" >&5 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5122,7 +5165,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* wine_cv_sys_statfs_has_statfs=yes else @@ -5149,12 +5192,12 @@ fi if test "$ac_cv_header_sys_mount_h" = "yes" then echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6 -echo "configure:5153: checking "whether sys/mount.h defines statfs"" >&5 +echo "configure:5196: checking "whether sys/mount.h defines statfs"" >&5 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5169,7 +5212,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* wine_cv_sys_mount_has_statfs=yes else @@ -5195,7 +5238,7 @@ fi echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6 -echo "configure:5199: checking "for statfs.f_bfree"" >&5 +echo "configure:5242: checking "for statfs.f_bfree"" >&5 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5204,7 +5247,7 @@ else wine_cv_statfs_bfree=no else cat > conftest.$ac_ext < @@ -5231,7 +5274,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* wine_cv_statfs_bfree=yes else @@ -5255,7 +5298,7 @@ EOF fi echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6 -echo "configure:5259: checking "for statfs.f_bavail"" >&5 +echo "configure:5302: checking "for statfs.f_bavail"" >&5 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5264,7 +5307,7 @@ else wine_cv_statfs_bavail=no else cat > conftest.$ac_ext < @@ -5291,7 +5334,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* wine_cv_statfs_bavail=yes else @@ -5316,7 +5359,7 @@ fi echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6 -echo "configure:5320: checking "for working sigaltstack"" >&5 +echo "configure:5363: checking "for working sigaltstack"" >&5 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5325,7 +5368,7 @@ else else cat > conftest.$ac_ext < @@ -5363,7 +5406,7 @@ else } EOF -if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_c_working_sigaltstack="yes" else @@ -5390,12 +5433,12 @@ fi echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6 -echo "configure:5394: checking "for msg_accrights in struct msghdr"" >&5 +echo "configure:5437: checking "for msg_accrights in struct msghdr"" >&5 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -5403,7 +5446,7 @@ int main() { struct msghdr hdr; hdr.msg_accrights=0 ; return 0; } EOF -if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_msg_accrights="yes" else @@ -5426,12 +5469,12 @@ fi echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6 -echo "configure:5430: checking "whether we need to define __i386__"" >&5 +echo "configure:5473: checking "whether we need to define __i386__"" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <. + * This file was generated automatically by tools/make_X11wrappers + * + * Copyright 1998 Kristian Nielsen + */ + +#ifndef __WINE_TS_XF86DGA2_H +#define __WINE_TS_XF86DGA2_H + +#include "config.h" + +#ifndef X_DISPLAY_MISSING + +#ifdef HAVE_LIBXXF86DGA2 + +#include +#include + +extern Bool TSXDGAQueryVersion(Display*, int*, int*); +extern Bool TSXDGAQueryExtension(Display*, int*, int*); +extern XDGAMode* TSXDGAQueryModes(Display*, int, int*); +extern XDGADevice* TSXDGASetMode(Display*, int, int); +extern Bool TSXDGAOpenFramebuffer(Display*, int); +extern void TSXDGACloseFramebuffer(Display*, int); +extern void TSXDGASetViewport(Display*, int, int, int, int); +extern void TSXDGAInstallColormap(Display*, int, Colormap); +extern Colormap TSXDGACreateColormap(Display*, int, XDGADevice*, int); +extern void TSXDGASelectInput(Display*, int, long); +extern void TSXDGAFillRectangle(Display*, int, int, int, unsigned int, unsigned int, unsigned long); +extern void TSXDGACopyArea(Display*, int, int, int, unsigned int, unsigned int, int, int); +extern void TSXDGACopyTransparentArea(Display*, int, int, int, unsigned int, unsigned int, int, int, unsigned long); +extern int TSXDGAGetViewportStatus(Display*, int); +extern void TSXDGASync(Display*, int); +extern Bool TSXDGASetClientVersion(Display*); +extern void TSXDGAChangePixmapMode(Display*, int, int*, int*, int); +extern void TSXDGAKeyEventToXKeyEvent(XDGAKeyEvent*, XKeyEvent*); + +#endif /* defined(HAVE_LIBXXF86DGA2) */ + +#endif /* !defined(X_DISPLAY_MISSING) */ + +#endif /* __WINE_TS_XF86DGA2_H */ diff --git a/tools/make_X11wrappers b/tools/make_X11wrappers index 1a8100966d1..61b5c23f269 100755 --- a/tools/make_X11wrappers +++ b/tools/make_X11wrappers @@ -14,10 +14,10 @@ # # This program expects to be run from Wine's main directory. -$X11_include_dir = "/usr/X11R6/include"; +$X11_include_dir = "/usr/X11/include"; $outdir = "tsx11"; $wantfile = "$outdir/X11_calls"; -@dolist = ("Xlib", "Xresource", "Xutil", "xpm", "XShm", "xf86dga", "xf86vmode"); +@dolist = ("Xlib", "Xresource", "Xutil", "xpm", "XShm", "xf86dga", "xf86dga2", "xf86vmode"); # First read list of wanted function names. @@ -46,6 +46,7 @@ foreach $name (@dolist) { $extensions_dir = ""; $pre_file = ""; $post_file = ""; + $inc_name = $name; if($name eq "Xutil" || $name eq "Xresource" || $name eq "XShm") { $x11_incl = "#include \n"; # For Xutil, we need X11/Xresource.h for XUniqueContext(). @@ -57,6 +58,13 @@ foreach $name (@dolist) { $pre_file = "#ifdef HAVE_LIBXXF86DGA\n"; $post_file = "#endif /* defined(HAVE_LIBXXF86DGA) */\n"; } + if($name eq "xf86dga2") { + $x11_incl = "#include \n"; + $extensions_dir = "extensions/"; + $pre_file = "#ifdef HAVE_LIBXXF86DGA2\n"; + $post_file = "#endif /* defined(HAVE_LIBXXF86DGA2) */\n"; + $inc_name = "xf86dga"; + } if($name eq "XShm") { $extensions_dir = "extensions/"; $pre_file = "#ifdef HAVE_LIBXXSHM\n"; @@ -90,7 +98,7 @@ foreach $name (@dolist) { #ifndef X_DISPLAY_MISSING $pre_file -$x11_incl#include +$x11_incl#include END @@ -106,7 +114,7 @@ END #ifndef X_DISPLAY_MISSING $pre_file -$x11_incl#include +$x11_incl#include #include "debugtools.h" #include "ts_$lcname.h" @@ -196,6 +204,25 @@ END "Display*a0,int a1,int a2", "a0,a1,a2" ); + } elsif($name eq "xf86dga2") { + output_fn_short("Bool", "XDGAQueryVersion", "Display*" ,"int*","int*"); + output_fn_short("Bool", "XDGAQueryExtension", "Display*" ,"int*","int*"); + output_fn_short("XDGAMode*", "XDGAQueryModes", "Display*" ,"int", "int*"); + output_fn_short("XDGADevice*", "XDGASetMode", "Display*" ,"int","int"); + output_fn_short("Bool", "XDGAOpenFramebuffer", "Display*" ,"int"); + output_fn_short("void", "XDGACloseFramebuffer", "Display*" ,"int"); + output_fn_short("void", "XDGASetViewport", "Display*" ,"int", "int", "int", "int"); + output_fn_short("void", "XDGAInstallColormap", "Display*" , "int", "Colormap"); + output_fn_short("Colormap", "XDGACreateColormap", "Display*" ,"int", "XDGADevice*", "int"); + output_fn_short("void", "XDGASelectInput", "Display*" ,"int", "long"); + output_fn_short("void", "XDGAFillRectangle", "Display*" ,"int", "int", "int", "unsigned int", "unsigned int", "unsigned long"); + output_fn_short("void", "XDGACopyArea", "Display*" ,"int", "int", "int", "unsigned int", "unsigned int", "int", "int"); + output_fn_short("void", "XDGACopyTransparentArea", "Display*" ,"int", "int", "int", "unsigned int", "unsigned int", "int", "int", "unsigned long"); + output_fn_short("int", "XDGAGetViewportStatus", "Display*" ,"int"); + output_fn_short("void", "XDGASync", "Display*" ,"int"); + output_fn_short("Bool", "XDGASetClientVersion", "Display*"); + output_fn_short("void", "XDGAChangePixmapMode", "Display*" ,"int", "int*", "int*", "int"); + output_fn_short("void", "XDGAKeyEventToXKeyEvent", "XDGAKeyEvent*" ,"XKeyEvent*"); } elsif($name eq "xf86vmode") { output_fn("XF86VidModeQueryVersion",Bool, "Display*,int*,int*", @@ -383,6 +410,38 @@ sub output_fn { $actuals); } +sub output_fn_short { + # Example call: + # output_fn_sort("Bool", "XDGAQueryExtension", "Display *", "int *", "int *"); + # + my ($result_type, $fn_name, @args) = @_; + + my ($i, $proto, $formals, $actuals) = (0, + "$result_type TS$fn_name(", + "$result_type TS$fn_name(", + ""); + while ($val = shift @args) { + $proto = $proto . $val; + $formals = $formals . $val . " a$i"; + $actuals = $actuals . " a$i"; + $i++; + if (@args) { + $proto = $proto . ", "; + $formals = $formals . ", "; + $actuals = $actuals . ", "; + } + } + $proto = $proto . ")"; + $formals = $formals . ")"; + + + raw_output_fn($fn_name, + $result_type =~ /^\s*void\s*$/ ? "" : "$result_type r", + $proto, + $formals, + $actuals); +} + sub raw_output_fn { # Example call: # output_fn("main", "int r", "int main(int, char **)", "int main(int a0, char **a1)", "a0, a1") diff --git a/tsx11/Makefile.in b/tsx11/Makefile.in index 9db8628b08d..f3f5ab6ac34 100644 --- a/tsx11/Makefile.in +++ b/tsx11/Makefile.in @@ -7,6 +7,7 @@ MODULE = tsx11 C_SRCS = \ ts_xf86dga.c \ + ts_xf86dga2.c \ ts_xf86vmode.c \ ts_xshm.c \ ts_xlib.c \ diff --git a/tsx11/X11_calls b/tsx11/X11_calls index 35a70824595..65c747b3e64 100644 --- a/tsx11/X11_calls +++ b/tsx11/X11_calls @@ -197,3 +197,21 @@ XF86VidModeLockModeSwitch XF86VidModeGetMonitor XF86VidModeGetViewPort XF86VidModeSetViewPort +XDGAQueryExtension +XDGAQueryVersion +XDGAQueryModes +XDGASetMode +XDGAOpenFramebuffer +XDGACloseFramebuffer +XDGASetViewport +XDGAInstallColormap +XDGACreateColormap +XDGASelectInput +XDGAFillRectangle +XDGACopyArea +XDGACopyTransparentArea +XDGAGetViewportStatus +XDGASync +XDGASetClientVersion +XDGAChangePixmapMode +XDGAKeyEventToXKeyEvent diff --git a/tsx11/ts_xf86dga2.c b/tsx11/ts_xf86dga2.c new file mode 100644 index 00000000000..50c007fe969 --- /dev/null +++ b/tsx11/ts_xf86dga2.c @@ -0,0 +1,202 @@ +/* + * Thread safe wrappers around xf86dga2 calls. + * This file was generated automatically by tools/make_X11wrappers + * DO NOT EDIT! + */ + +#include "config.h" + +#ifndef X_DISPLAY_MISSING + +#ifdef HAVE_LIBXXF86DGA2 + +#include +#include + +#include "debugtools.h" +#include "ts_xf86dga2.h" +#include "x11drv.h" + +DEFAULT_DEBUG_CHANNEL(x11) + +Bool TSXDGAQueryVersion(Display* a0, int* a1, int* a2) +{ + Bool r; + TRACE("Call XDGAQueryVersion\n"); + EnterCriticalSection( &X11DRV_CritSection ); + r = XDGAQueryVersion( a0, a1, a2); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAQueryVersion\n"); + return r; +} + +Bool TSXDGAQueryExtension(Display* a0, int* a1, int* a2) +{ + Bool r; + TRACE("Call XDGAQueryExtension\n"); + EnterCriticalSection( &X11DRV_CritSection ); + r = XDGAQueryExtension( a0, a1, a2); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAQueryExtension\n"); + return r; +} + +XDGAMode* TSXDGAQueryModes(Display* a0, int a1, int* a2) +{ + XDGAMode* r; + TRACE("Call XDGAQueryModes\n"); + EnterCriticalSection( &X11DRV_CritSection ); + r = XDGAQueryModes( a0, a1, a2); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAQueryModes\n"); + return r; +} + +XDGADevice* TSXDGASetMode(Display* a0, int a1, int a2) +{ + XDGADevice* r; + TRACE("Call XDGASetMode\n"); + EnterCriticalSection( &X11DRV_CritSection ); + r = XDGASetMode( a0, a1, a2); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGASetMode\n"); + return r; +} + +Bool TSXDGAOpenFramebuffer(Display* a0, int a1) +{ + Bool r; + TRACE("Call XDGAOpenFramebuffer\n"); + EnterCriticalSection( &X11DRV_CritSection ); + r = XDGAOpenFramebuffer( a0, a1); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAOpenFramebuffer\n"); + return r; +} + +void TSXDGACloseFramebuffer(Display* a0, int a1) +{ + TRACE("Call XDGACloseFramebuffer\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGACloseFramebuffer( a0, a1); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGACloseFramebuffer\n"); +} + +void TSXDGASetViewport(Display* a0, int a1, int a2, int a3, int a4) +{ + TRACE("Call XDGASetViewport\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGASetViewport( a0, a1, a2, a3, a4); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGASetViewport\n"); +} + +void TSXDGAInstallColormap(Display* a0, int a1, Colormap a2) +{ + TRACE("Call XDGAInstallColormap\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGAInstallColormap( a0, a1, a2); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAInstallColormap\n"); +} + +Colormap TSXDGACreateColormap(Display* a0, int a1, XDGADevice* a2, int a3) +{ + Colormap r; + TRACE("Call XDGACreateColormap\n"); + EnterCriticalSection( &X11DRV_CritSection ); + r = XDGACreateColormap( a0, a1, a2, a3); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGACreateColormap\n"); + return r; +} + +void TSXDGASelectInput(Display* a0, int a1, long a2) +{ + TRACE("Call XDGASelectInput\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGASelectInput( a0, a1, a2); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGASelectInput\n"); +} + +void TSXDGAFillRectangle(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6) +{ + TRACE("Call XDGAFillRectangle\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGAFillRectangle( a0, a1, a2, a3, a4, a5, a6); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAFillRectangle\n"); +} + +void TSXDGACopyArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7) +{ + TRACE("Call XDGACopyArea\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGACopyArea( a0, a1, a2, a3, a4, a5, a6, a7); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGACopyArea\n"); +} + +void TSXDGACopyTransparentArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7, unsigned long a8) +{ + TRACE("Call XDGACopyTransparentArea\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGACopyTransparentArea( a0, a1, a2, a3, a4, a5, a6, a7, a8); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGACopyTransparentArea\n"); +} + +int TSXDGAGetViewportStatus(Display* a0, int a1) +{ + int r; + TRACE("Call XDGAGetViewportStatus\n"); + EnterCriticalSection( &X11DRV_CritSection ); + r = XDGAGetViewportStatus( a0, a1); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAGetViewportStatus\n"); + return r; +} + +void TSXDGASync(Display* a0, int a1) +{ + TRACE("Call XDGASync\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGASync( a0, a1); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGASync\n"); +} + +Bool TSXDGASetClientVersion(Display* a0) +{ + Bool r; + TRACE("Call XDGASetClientVersion\n"); + EnterCriticalSection( &X11DRV_CritSection ); + r = XDGASetClientVersion( a0); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGASetClientVersion\n"); + return r; +} + +void TSXDGAChangePixmapMode(Display* a0, int a1, int* a2, int* a3, int a4) +{ + TRACE("Call XDGAChangePixmapMode\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGAChangePixmapMode( a0, a1, a2, a3, a4); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAChangePixmapMode\n"); +} + +void TSXDGAKeyEventToXKeyEvent(XDGAKeyEvent* a0, XKeyEvent* a1) +{ + TRACE("Call XDGAKeyEventToXKeyEvent\n"); + EnterCriticalSection( &X11DRV_CritSection ); + XDGAKeyEventToXKeyEvent( a0, a1); + LeaveCriticalSection( &X11DRV_CritSection ); + TRACE("Ret XDGAKeyEventToXKeyEvent\n"); +} + +#endif /* defined(HAVE_LIBXXF86DGA2) */ + +#endif /* !defined(X_DISPLAY_MISSING) */