summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/replace/crypt.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/lib/replace/crypt.m4')
-rw-r--r--ctdb/lib/replace/crypt.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/lib/replace/crypt.m4 b/ctdb/lib/replace/crypt.m4
new file mode 100644
index 0000000000..fae2a58685
--- /dev/null
+++ b/ctdb/lib/replace/crypt.m4
@@ -0,0 +1,6 @@
+###############################################
+# test for where we get crypt() from
+AC_CHECK_HEADERS(crypt.h)
+AC_SEARCH_LIBS_EXT(crypt, [crypt], CRYPT_LIBS,
+ [ AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function]) ],
+ [ LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/crypt.o" ])