Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2002 12:30:46 -0800
From:      Geoffrey Mainland <mainland@apeiron.net>
To:        freebsd-questions@freebsd.org
Cc:        freebsd-ports@freebsd.org
Subject:   imake-4 build problem and make weirdness
Message-ID:  <20020124203046.GA82211@apeiron.net>

next in thread | raw e-mail | index | archive | help
Given a Makefile containing:

${ETC} = /etc

all:
.if exists(${ETC}/rc.conf)
	@echo 1
.endif

.if exists(/etc/rc.conf)
	@echo 2
.endif

typing make yields:

2

Why doesn't the first 'exists' test succeed? I noticed this when
trying to compile imake-4. I have USA_RESIDENT=YES in /etc/make.conf
and I have also downloaded Wraphelp.c to
/usr/ports/distfiles/xc/Wraphelp.c, yet when I build imake-4 the build
process says it can't find Wraphelp.c and sets HasXdmAuth to NO. The
test in question is:

.if ${HasXdmAuth} == YES
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
.if !exists(${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c)
pre-everything::
        @${ECHO_MSG} "You don't have Wraphelp.c: HasXdmAuth disabled."
HasXdmAuth=     NO
.else
...

Changing this to:

.if ${HasXdmAuth} == YES
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
.if !exists(/usr/ports/distfiles/xc/Wraphelp.c)
pre-everything::
        @${ECHO_MSG} "You don't have Wraphelp.c: HasXdmAuth disabled."
HasXdmAuth=     NO
.else
...

fixes things. What's the deal here?

Thanks,
Geoff

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020124203046.GA82211>