]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix EVERY SINGLE build on the buildfarm that doesn't have
authorJeremy Allison <jra@samba.org>
Thu, 13 Aug 2009 00:44:48 +0000 (17:44 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 13 Aug 2009 00:44:48 +0000 (17:44 -0700)
bindtextdomain or textdomain. C'mon, this is what configure.in
is *FOR*.
Jeremy.

source3/configure.in
source3/utils/net.c

index 7cfd3fb2d94cd1344920b57faee1d66abb791196..749bfc40fdb69f10f9241be0a83a4ee24beb9bbd 100644 (file)
@@ -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)
index 1e3923fc3b9eec766b48f44da474939a59fe763d..58c962327d43bfa5bc743afea88792e0ce0e78f6 100644 (file)
@@ -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;