blob: 37d5a2a169f119b8b5d0b97645255aa9d51342f5 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-configure.sh,v 1.4 2014/02/20 16:40:54 schmonz Exp $
Fix messed up configure.sh.
--- discount/configure.sh.orig 2013-08-26 08:16:50.000000000 +0000
+++ discount/configure.sh
@@ -87,11 +87,11 @@ AC_C_INLINE
AC_SCALAR_TYPES sub hdr
AC_CHECK_BASENAME
-AC_CHECK_HEADERS sys/types.h pwd.h && AC_CHECK_FUNCS getpwuid
+AC_CHECK_HEADERS sys/types.h pwd.h && AC_CHECK_FUNCS 'getpwuid(0)'
-if AC_CHECK_FUNCS srandom; then
+if AC_CHECK_FUNCS 'srandom(0)'; then
AC_DEFINE 'INITRNG(x)' 'srandom((unsigned int)x)'
-elif AC_CHECK_FUNCS srand; then
+elif AC_CHECK_FUNCS 'srand(0)'; then
AC_DEFINE 'INITRNG(x)' 'srand((unsigned int)x)'
else
AC_DEFINE 'INITRNG(x)' '(void)1'
@@ -113,7 +113,7 @@ else
AC_DEFINE 'COINTOSS()' '1'
fi
-if AC_CHECK_FUNCS strcasecmp; then
+if AC_CHECK_FUNCS 'strcasecmp("X","X")'; then
:
elif AC_CHECK_FUNCS stricmp; then
AC_DEFINE strcasecmp stricmp
@@ -121,7 +121,7 @@ else
AC_FAIL "$TARGET requires either strcasecmp() or stricmp()"
fi
-if AC_CHECK_FUNCS strncasecmp; then
+if AC_CHECK_FUNCS 'strcasecmp("X","X")'; then
:
elif AC_CHECK_FUNCS strnicmp; then
AC_DEFINE strncasecmp strnicmp
@@ -129,7 +129,7 @@ else
AC_FAIL "$TARGET requires either strncasecmp() or strnicmp()"
fi
-if AC_CHECK_FUNCS fchdir || AC_CHECK_FUNCS getcwd ; then
+if AC_CHECK_FUNCS 'fchdir(0)' || AC_CHECK_FUNCS getcwd ; then
AC_SUB 'THEME' ''
else
AC_SUB 'THEME' '#'
|