blob: 553d05364b0b11ac64920aabc33db6cf15bfcdb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-ab,v 1.1.1.1 2004/07/16 11:28:19 jdolecek Exp $
--- configure.ac.orig 2003-09-24 01:39:03.000000000 +0200
+++ configure.ac
@@ -84,11 +84,14 @@ AC_SUBST(build_opts, "$mysql_includes $m
# Checks for header files.
AC_CHECK_HEADERS([crypt.h])
+AC_CHECK_LIB([crypt], [crypt])
-if test -n $HAVE_CRYPT_H; then
+if test -n $HAVE_CRYPT_H -a $HAVE_LIBCRYPT; then
AC_TRY_RUN(
[
+#ifdef HAVE_CRYPT_H
#include <crypt.h>
+#endif
#include <string.h>
int main()
@@ -101,7 +104,9 @@ AC_DEFINE(CRYPT_MD5),
,,)
AC_TRY_RUN(
[
+#ifdef HAVE_CRYPT_H
#include <crypt.h>
+#endif
#include <string.h>
int main()
|