Subject: pkg/8251: make sidplay build without X11
To: None <gnats-bugs@gnats.netbsd.org>
From: Antti Kantee <pooka@iki.fi>
List: netbsd-bugs
Date: 08/22/1999 05:50:55
>Number:         8251
>Category:       pkg
>Synopsis:       sidplay doesn't build without X11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 22 05:05:00 1999
>Last-Modified:
>Originator:     Antti Kantee
>Organization:
>Release:        NetBSD 1.4
>Environment:
NetBSD/i386

>Description:
The sidplay package currently requires 'makedepend' to build, but it comes
with X11, so sidplay won't build on a box which doesn't have X11.

>How-To-Repeat:
(cd pkgsrc/audio/sidplay ; make) on a box without X11

>Fix:
The following patch fixes configure to use 'mkdep' if 'makedepend' is not
found. Note: the patch is provided only for configure.in, as configure
can be created from it trivially. (and the patch for configure was loooong)

--- configure.in.old    Sun Apr 11 21:01:39 1999
+++ configure.in        Sun Aug 22 14:45:13 1999
@@ -69,7 +69,11 @@
 
 AC_CHECK_PROG(MAKEDEP,makedepend,makedepend,nomakedep)
 if test "$MAKEDEP" = "nomakedep"; then
-  AC_MSG_ERROR(No ``makedepend'' found.)
+  AC_CHECK_PROG(MKDEP,mkdep,mkdep,nomkdep)
+  if test "$MKDEP" = "nomkdep"; then
+    AC_MSG_ERROR(No ``makedepend'' or ``mkdep'' found.)
+  fi;
+  MAKEDEP=$MKDEP
 fi;
 AC_SUBST(MAKEDEP)

>Audit-Trail:
>Unformatted: