summaryrefslogtreecommitdiff
path: root/source4/heimdal_build/config.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-14 18:48:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:52 -0500
commitdbdb4cc2694e7dddbf335eb3c7c56495bbe600b1 (patch)
tree55f687954aeb4f7943e27489b32006c7ded8cba8 /source4/heimdal_build/config.m4
parent47523dbc6a03498b362f08897c260f7cdebe271b (diff)
downloadsamba-dbdb4cc2694e7dddbf335eb3c7c56495bbe600b1.tar.gz
samba-dbdb4cc2694e7dddbf335eb3c7c56495bbe600b1.tar.bz2
samba-dbdb4cc2694e7dddbf335eb3c7c56495bbe600b1.zip
r20777: only include closefrom.c if the system doesn't have it.
hopefully solaris build fine now... metze (This used to be commit f9a6649f08a6634db4059b904e95ca870e2ab095)
Diffstat (limited to 'source4/heimdal_build/config.m4')
-rw-r--r--source4/heimdal_build/config.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4
index 8a69a880d4..462521d6b6 100644
--- a/source4/heimdal_build/config.m4
+++ b/source4/heimdal_build/config.m4
@@ -253,6 +253,12 @@ fi
SMB_EXT_LIB(NSL,[${NSL_LIBS}],[],[],[])
+# only add closefrom if needed
+SMB_ENABLE(HEIMDAL_ROKEN_CLOSEFROM, NO)
+if test t$ac_cv_func_closefrom != tyes; then
+ SMB_ENABLE(HEIMDAL_ROKEN_CLOSEFROM, YES)
+fi
+
# only add getprogname if needed
SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME, NO)
SMB_ENABLE(HEIMDAL_ROKEN_GETPROGNAME_H, NO)