summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2006-04-19 15:41:56 +0200
committerunknown <kent@mysql.com>2006-04-19 15:41:56 +0200
commit42624eda4fc882bc825d0fcba98768a0fb4d29ef (patch)
tree266672750ee98608140fa35fb008f4ec99a9eb28 /configure.in
parent49bd7632492daea11ab1ea4ee2a1c79d69ccda92 (diff)
parent0b56e42c53892af6c4e0b295f572ac9d991b90ce (diff)
downloadmariadb-git-42624eda4fc882bc825d0fcba98768a0fb4d29ef.tar.gz
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/Users/kent/mysql/bk/mysql-4.1-new configure.in: Auto merged
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index a7ef6546425..4b8f30511c5 100644
--- a/configure.in
+++ b/configure.in
@@ -827,9 +827,8 @@ AC_CHECK_FUNC(yp_get_default_domain, ,
AC_CHECK_FUNC(p2open, , AC_CHECK_LIB(gen, p2open))
# This may get things to compile even if bind-8 is installed
AC_CHECK_FUNC(bind, , AC_CHECK_LIB(bind, bind))
-# For crypt() on Linux
-AC_CHECK_LIB(crypt, crypt)
-AC_CHECK_FUNC(crypt, AC_DEFINE([HAVE_CRYPT], [1], [crypt]))
+# Check if crypt() exists in libc or libcrypt, sets LIBS if needed
+AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
# For sem_xxx functions on Solaris 2.6
AC_CHECK_FUNC(sem_init, , AC_CHECK_LIB(posix4, sem_init))