summaryrefslogtreecommitdiff
path: root/source4/heimdal_build/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/heimdal_build/config.m4')
-rw-r--r--source4/heimdal_build/config.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4
index 75667ab772..ad0bdee1a8 100644
--- a/source4/heimdal_build/config.m4
+++ b/source4/heimdal_build/config.m4
@@ -62,6 +62,7 @@ AC_CHECK_HEADERS([ \
AC_CHECK_FUNCS([ \
atexit \
cgetent \
+ getprogname \
inet_ntop \
inet_aton \
gethostname \
@@ -235,6 +236,14 @@ if test t$ac_cv_func_inet_aton != tyes; then
SMB_ENABLE(HEIMDAL_ROKEN_INET_ATON, YES)
fi
+# only add getprogname if needed
+SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME, NO)
+SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME_HOST, NO)
+if test t$ac_cv_func_getprogname != tyes; then
+ SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME, YES)
+ SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME_HOST, YES)
+fi
+
# only add gai_strerror if needed
SMB_ENABLE(HEIMDAL_ROKEN_GAI_STRERROR, NO)
AC_CHECK_FUNC(gai_strerror)