From owner-freebsd-questions Thu Jan 24 12:30:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from zeno.apeiron.net (adsl-64-162-208-98.dsl.snfc21.pacbell.net [64.162.208.98]) by hub.freebsd.org (Postfix) with ESMTP id 948AA37B416; Thu, 24 Jan 2002 12:30:47 -0800 (PST) Received: (from mainland@localhost) by zeno.apeiron.net (8.11.6/8.11.5) id g0OKUlq82273; Thu, 24 Jan 2002 12:30:47 -0800 (PST) (envelope-from mainland) Date: Thu, 24 Jan 2002 12:30:46 -0800 From: Geoffrey Mainland To: freebsd-questions@freebsd.org Cc: freebsd-ports@freebsd.org Subject: imake-4 build problem and make weirdness Message-ID: <20020124203046.GA82211@apeiron.net> Mail-Followup-To: freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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