Subject: pkg/22918: devel/m4 - bmake substitution failure on Solaris
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mlh@goathill.org>
List: netbsd-bugs
Date: 09/23/2003 09:01:36
>Number:         22918
>Category:       pkg
>Synopsis:       devel/m4 - bmake substitution failure on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 23 14:02:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     MLH
>Release:        Solaris
>Organization:
none
	
>Environment:
bootstrap-pkgsrc (current)

>Description:
devel/m4  on solaris :
===> *** No /export/home/pkgbin/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Configuring for m4-1.4nb1
loading cache ./config.cache
checking for mawk... /usr/bin/nawk
checking for gcc... cc
checking whether we are using GNU C... yes
checking for a BSD compatible install... /usr/ucb/install -c -o root -g root
checking whether /usr/pkg/bin/bmake sets $MAKE... ./configure: bad substitution
*** Error code 1

The problem is with:
if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\"
  = set"; then

where ${ac_make} on a solaris box evaluates to /usr/pkg/bin/bmake instead of
just 'make' or 'bmake', resulting in attempting to evaluate the following
variable:
 ${ac_cv_prog_make_/usr/pkg/bin/bmake_set+set}

>How-To-Repeat:
attempt to build devel/m4 on Solaris under bootstrap-pkgsrc using 
the lang/gcc compiler
>Fix:
none known
>Release-Note:
>Audit-Trail:
>Unformatted:
 SunOS franklin 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10