heimdal_build: only enable libintl functions if everything was found
authorChristian Ambach <ambi@samba.org>
Wed, 19 Feb 2014 21:17:01 +0000 (22:17 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 10 Mar 2014 15:11:13 +0000 (16:11 +0100)
do not rely on intl.h being available but also on the functions being usable
This should fix the build on HP-UX

Bug: https://bugzilla.samba.org/show_bug.cgi?id=9911
Signed-off-by: Christian Ambach <ambi@samba.org>
Change-Id: I5dd88d2d5216b778624778455cca99b32d0be58f
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Feb 20 01:28:24 CET 2014 on sn-devel-104

(cherry picked from commit 8f0d06fa5e654f647664727db6f12901579ec2c7)

source4/heimdal_build/config.h

index bd5a1b86bbe44e05e4cfe2ac5376a40b068c4ce9..2d113ae543f6b2f88a546ff4a704fdbe86c173ff 100644 (file)
@@ -41,7 +41,8 @@
 #endif
 
 /*Workaround for heimdal define vs samba define*/
-#ifdef HAVE_LIBINTL_H
+#if defined(HAVE_LIBINTL_H) && defined(HAVE_BINDTEXTDOMAIN) &&\
+    defined(HAVE_TEXTDOMAIN)
 #define LIBINTL
 #endif