summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-08-12 17:44:48 -0700
committerJeremy Allison <jra@samba.org>2009-08-12 17:44:48 -0700
commit88fd98b7c4ed41ab6c6ac5a226581e862ae900f3 (patch)
treef071f50a6d581016e983d874796afff36ffcac12
parent28f7b0743679c042bc135c7ec5265d75e900aa87 (diff)
downloadsamba-88fd98b7c4ed41ab6c6ac5a226581e862ae900f3.tar.gz
samba-88fd98b7c4ed41ab6c6ac5a226581e862ae900f3.tar.bz2
samba-88fd98b7c4ed41ab6c6ac5a226581e862ae900f3.zip
Fix EVERY SINGLE build on the buildfarm that doesn't have
bindtextdomain or textdomain. C'mon, this is what configure.in is *FOR*. Jeremy.
-rw-r--r--source3/configure.in1
-rw-r--r--source3/utils/net.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 7cfd3fb2d9..749bfc40fd 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1018,6 +1018,7 @@ AC_CHECK_HEADERS(sys/mman.h)
# setbuffer, shmget, shm_open are needed for smbtorture
AC_CHECK_FUNCS(shmget shm_open)
AC_CHECK_FUNCS(gettext dgettext)
+AC_CHECK_FUNCS(bindtextdomain textdomain)
# Find a method of generating a stack trace
AC_CHECK_HEADERS(execinfo.h libexc.h libunwind.h)
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 1e3923fc3b..58c962327d 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -678,8 +678,12 @@ static struct functable net_func[] = {
load_case_tables();
setlocale(LC_ALL, "");
+#if defined(HAVE_BINDTEXTDOMAIN)
bindtextdomain(MODULE_NAME, dyn_LOCALEDIR);
+#endif
+#if defined(HAVE_TEXTDOMAIN)
textdomain(MODULE_NAME);
+#endif
/* set default debug level to 0 regardless of what smb.conf sets */
DEBUGLEVEL_CLASS[DBGC_ALL] = 0;