summaryrefslogtreecommitdiff
path: root/source4/heimdal_build
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-08-15 01:38:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:23 -0500
commit65ec408473972099f08d3ff0485e5f07244ad94c (patch)
treebe5bcfcfbb0d2449e897e1b3482c935dc7afad84 /source4/heimdal_build
parentd452cd061cbc8a1a4fcf78139fd5386800f4f48d (diff)
downloadsamba-65ec408473972099f08d3ff0485e5f07244ad94c.tar.gz
samba-65ec408473972099f08d3ff0485e5f07244ad94c.tar.bz2
samba-65ec408473972099f08d3ff0485e5f07244ad94c.zip
r9305: Use the check-var.m4 from roken to really, really detect h_errno correctly.
This fixes the build on Fedora Core 4. Andrew Bartlett (This used to be commit aa36b2adad0d66b8171aa3ccca3057298361bec5)
Diffstat (limited to 'source4/heimdal_build')
-rw-r--r--source4/heimdal_build/config.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4
index 5eb443cd82..27cc0a3c9a 100644
--- a/source4/heimdal_build/config.m4
+++ b/source4/heimdal_build/config.m4
@@ -1,4 +1,3 @@
-
m4_define([upcase],`echo $1 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`)dnl
dnl love_FIND_FUNC(func, includes, arguments)
@@ -165,9 +164,11 @@ if test "$ac_cv_type_signal" = "void" ; then
fi
AC_SUBST(VOID_RETSIGTYPE)
-AC_CHECK_DECL(h_errno,
- [AC_DEFINE(HAVE_DECL_H_ERRNO,1,whether h_errno is declared)], [], [
-#ifdef HAVE_SYS_TYPES_H
+
+sinclude(heimdal/cf/check-var.m4)
+
+rk_CHECK_VAR(h_errno,
+[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H