Module: wine
Branch: master
Commit: 858ccfff8bc29c6f9f8bd9d13372669ab0ac2c36
URL: http://source.winehq.org/git/wine.git/?a=commit;h=858ccfff8bc29c6f9f8bd9d13…
Author: Thomas Mullaly <thomas.mullaly(a)gmail.com>
Date: Sun Jan 2 17:13:43 2011 -0500
normaliz: Added normaliz.dll stub.
---
configure | 1 +
configure.ac | 1 +
dlls/normaliz/Makefile.in | 7 ++++++
dlls/normaliz/normaliz.c | 50 +++++++++++++++++++++++++++++++++++++++++++
dlls/normaliz/normaliz.spec | 5 ++++
5 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index e49ad75..25b8533 100755
--- a/configure
+++ b/configure
@@ -15148,6 +15148,7 @@ wine_fn_config_dll nddeapi enable_nddeapi implib
wine_fn_config_dll netapi32 enable_netapi32 implib
wine_fn_config_test dlls/netapi32/tests netapi32_test
wine_fn_config_dll newdev enable_newdev implib
+wine_fn_config_dll normaliz enable_normaliz implib
wine_fn_config_dll npmshtml enable_npmshtml
wine_fn_config_dll ntdll enable_ntdll implib
wine_fn_config_test dlls/ntdll/tests ntdll_test
diff --git a/configure.ac b/configure.ac
index 9ceb0f1..9ed1a5d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2635,6 +2635,7 @@ WINE_CONFIG_DLL(nddeapi,,[implib])
WINE_CONFIG_DLL(netapi32,,[implib])
WINE_CONFIG_TEST(dlls/netapi32/tests)
WINE_CONFIG_DLL(newdev,,[implib])
+WINE_CONFIG_DLL(normaliz,,[implib])
WINE_CONFIG_DLL(npmshtml)
WINE_CONFIG_DLL(ntdll,,[implib])
WINE_CONFIG_TEST(dlls/ntdll/tests)
diff --git a/dlls/normaliz/Makefile.in b/dlls/normaliz/Makefile.in
new file mode 100644
index 0000000..9cc5a52
--- /dev/null
+++ b/dlls/normaliz/Makefile.in
@@ -0,0 +1,7 @@
+MODULE = normaliz.dll
+IMPORTLIB = normaliz
+
+C_SRCS = \
+ normaliz.c
+
+@MAKE_DLL_RULES@
diff --git a/dlls/normaliz/normaliz.c b/dlls/normaliz/normaliz.c
new file mode 100644
index 0000000..c00df40
--- /dev/null
+++ b/dlls/normaliz/normaliz.c
@@ -0,0 +1,50 @@
+/*
+ * Normaliz DLL.
+ *
+ * Copyright 2011 Thomas Mullaly
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/* All calls to this DLL are forwarded to kernel32. On Windows XP this DLL actually contains
+ * the implementations for the functions it exports, but, starting with Vista these
+ * functions have been moved into kernel32.
+ */
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(authz);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+ switch (fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ default:
+ break;
+ }
+
+ return TRUE;
+}
diff --git a/dlls/normaliz/normaliz.spec b/dlls/normaliz/normaliz.spec
new file mode 100644
index 0000000..b26649b
--- /dev/null
+++ b/dlls/normaliz/normaliz.spec
@@ -0,0 +1,5 @@
+@ stdcall IdnToAscii(long wstr long ptr long) kernel32.IdnToAscii
+@ stdcall IdnToNameprepUnicode(long wstr long ptr long) kernel32.IdnToNameprepUnicode
+@ stdcall IdnToUnicode(long wstr long ptr long) kernel32.IdnToUnicode
+@ stdcall IsNormalizedString(long wstr long) kernel32.IsNormalizedString
+@ stdcall NormalizeString(long wstr long ptr long) kernel32.NormalizeString
Module: wine
Branch: master
Commit: 0e79c5c1c3aee1dd28557b3075df84abb3e52649
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0e79c5c1c3aee1dd28557b307…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Tue Jan 4 11:16:50 2011 +0100
configure: Add a check for the gettextpo library.
---
configure | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++-
configure.ac | 15 +++++++++++
include/config.h.in | 6 ++++
3 files changed, 90 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 771ccba..e49ad75 100755
--- a/configure
+++ b/configure
@@ -622,6 +622,7 @@ GSTREAMER_LIBS
ESDLIBS
ESDINCL
ESDCONFIG
+LIBGETTEXTPO
ZLIB
FREETYPEINCL
FREETYPELIBS
@@ -777,6 +778,7 @@ with_curses
with_esd
with_fontconfig
with_freetype
+with_gettextpo
with_gphoto
with_glu
with_gnutls
@@ -1467,6 +1469,7 @@ Optional Packages:
--without-esd do not use the EsounD sound support
--without-fontconfig do not use fontconfig
--without-freetype do not use the FreeType library
+ --without-gettextpo do not use the GetTextPO library
--without-gphoto do not use gphoto (Digital Camera support)
--without-glu do not use the GLU library
--without-gnutls do not use GnuTLS (schannel support)
@@ -2561,6 +2564,12 @@ if test "${with_freetype+set}" = set; then :
fi
+# Check whether --with-gettextpo was given.
+if test "${with_gettextpo+set}" = set; then :
+ withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
+fi
+
+
# Check whether --with-gphoto was given.
if test "${with_gphoto+set}" = set; then :
withval=$with_gphoto;
@@ -5783,6 +5792,7 @@ for ac_header in \
fnmatch.h \
fontconfig/fontconfig.h \
getopt.h \
+ gettext-po.h \
grp.h \
gsm.h \
gsm/gsm.h \
@@ -10581,6 +10591,65 @@ fi
fi
+if test "x$enable_tools" != xno
+then
+ if test "$ac_cv_header_gettext_po_h" = "yes"
+ then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_file_write in -lgettextpo" >&5
+$as_echo_n "checking for po_file_write in -lgettextpo... " >&6; }
+if test "${ac_cv_lib_gettextpo_po_file_write+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgettextpo $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* 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 po_file_write ();
+int
+main ()
+{
+return po_file_write ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gettextpo_po_file_write=yes
+else
+ ac_cv_lib_gettextpo_po_file_write=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_gettextpo_po_file_write" >&5
+$as_echo "$ac_cv_lib_gettextpo_po_file_write" >&6; }
+if test "x$ac_cv_lib_gettextpo_po_file_write" = x""yes; then :
+
+$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
+
+ LIBGETTEXTPO="-lgettextpo"
+
+fi
+
+ fi
+ if test "x$LIBGETTEXTPO" = "x"; then :
+ case "x$with_gettextpo" in
+ x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found. Internationalization won't be fully supported." ;;
+ xno) ;;
+ *) as_fn_error $? "GetText ${notice_platform}development files not found. Internationalization won't be fully supported.
+This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
+esac
+fi
+fi
+
if test "x$with_esd" != xno
then
save_CFLAGS="$CFLAGS"
@@ -15395,7 +15464,6 @@ if test "x$enable_maintainer_mode" = xyes
then
wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
cd \$(srcdir) && autoconf --warnings=all
-
\$(srcdir)/include/config.h.in: include/stamp-h.in
\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
cd \$(srcdir) && autoheader --warnings=all
diff --git a/configure.ac b/configure.ac
index 3f06551..9ceb0f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,8 @@ AC_ARG_WITH(esd, AS_HELP_STRING([--without-esd],[do not use the EsounD sou
AC_ARG_WITH(fontconfig,AS_HELP_STRING([--without-fontconfig],[do not use fontconfig]),
[if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi])
AC_ARG_WITH(freetype, AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
+AC_ARG_WITH(gettextpo, AS_HELP_STRING([--without-gettextpo],[do not use the GetTextPO library]),
+ [if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi])
AC_ARG_WITH(gphoto, AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)]))
AC_ARG_WITH(glu, AS_HELP_STRING([--without-glu],[do not use the GLU library]),
[if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi])
@@ -393,6 +395,7 @@ AC_CHECK_HEADERS(\
fnmatch.h \
fontconfig/fontconfig.h \
getopt.h \
+ gettext-po.h \
grp.h \
gsm.h \
gsm/gsm.h \
@@ -1407,6 +1410,18 @@ then
AC_SUBST(ZLIB,"-lz")])
fi
+dnl **** Check for gettextpo ****
+if test "x$enable_tools" != xno
+then
+ if test "$ac_cv_header_gettext_po_h" = "yes"
+ then
+ AC_CHECK_LIB(gettextpo,po_file_write,
+ [AC_DEFINE(HAVE_LIBGETTEXTPO,1,[Define to 1 if you have the `gettextpo' library (-lgettextpo).])
+ AC_SUBST(LIBGETTEXTPO,"-lgettextpo")])
+ fi
+ WINE_WARNING_WITH(gettextpo,[test "x$LIBGETTEXTPO" = "x"],[GetText ${notice_platform}development files not found. Internationalization won't be fully supported.])
+fi
+
dnl **** Check for EsounD ****
if test "x$with_esd" != xno
then
diff --git a/include/config.h.in b/include/config.h.in
index 58767a0..8a526ea 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -226,6 +226,9 @@
/* Define to 1 if you have the `getservbyport' function. */
#undef HAVE_GETSERVBYPORT
+/* Define to 1 if you have the <gettext-po.h> header file. */
+#undef HAVE_GETTEXT_PO_H
+
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
@@ -352,6 +355,9 @@
/* Define to 1 if you have the `ldap_parse_vlv_control' function. */
#undef HAVE_LDAP_PARSE_VLV_CONTROL
+/* Define to 1 if you have the `gettextpo' library (-lgettextpo). */
+#undef HAVE_LIBGETTEXTPO
+
/* Define to 1 if you have the `i386' library (-li386). */
#undef HAVE_LIBI386