summaryrefslogtreecommitdiff
blob: 5405206fc516921408bacda07c78f0bd4c778b3f (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
49
The autoconf from upstream never built DBM even if you wanted it, because
enable_build_dbm was never true with --enable-dbm. The only time you actually
got it before was when you had selected the testsuite.

Fixed up that, and the entire reversed logic, and just throw away the useless
db_cv_build_dbm variable entirely.

Correct logic is:
if(--enable-dbm || --enable-test) { 
	Build DBM
}

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

diff -Nuar db-5.0.21.orig//dist/aclocal/options.m4 db-5.0.21//dist/aclocal/options.m4
--- db-5.0.21.orig//dist/aclocal/options.m4	2010-03-30 10:36:10.000000000 -0700
+++ db-5.0.21//dist/aclocal/options.m4	2010-05-13 13:49:23.889947877 -0700
@@ -274,15 +274,11 @@
 AC_MSG_RESULT($db_cv_test)
 
 AC_MSG_CHECKING(if --enable-dbm option specified)
-AC_ARG_ENABLE(build_dbm,
+AC_ARG_ENABLE(dbm,
 	[AC_HELP_STRING([--enable-dbm],
 			[Configure to enable the historic dbm interface.])],
-	[db_cv_build_dbm="$enable_dbm"], enableval="$db_cv_test")
-db_cv_build_dbm="$enableval"
-case "$enableval" in
- no) AC_MSG_RESULT(yes);;
-yes) AC_MSG_RESULT(no);;
-esac
+	[db_cv_dbm="$enable_dbm"], [db_cv_dbm="$db_cv_test"])
+AC_MSG_RESULT($db_cv_dbm)
 
 AC_MSG_CHECKING(if --enable-dtrace option specified)
 AC_ARG_ENABLE(dtrace,
diff -Nuar db-5.0.21.orig//dist/configure.ac db-5.0.21//dist/configure.ac
--- db-5.0.21.orig//dist/configure.ac	2010-05-13 13:41:26.415822427 -0700
+++ db-5.0.21//dist/configure.ac	2010-05-13 13:48:59.185822961 -0700
@@ -973,7 +973,8 @@
 fi
 
 # The DBM API can be disabled.
-if test "$db_cv_build_dbm" = "yes"; then
+
+if test "$db_cv_dbm" = "yes"; then
 	AC_DEFINE(HAVE_DBM)
 	AH_TEMPLATE(HAVE_DBM, [Define to 1 if building the DBM API.])
 	ADDITIONAL_OBJS="$ADDITIONAL_OBJS dbm${o} hsearch${o}"