From owner-freebsd-questions Fri Apr 4 22:48:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA24014 for questions-outgoing; Fri, 4 Apr 1997 22:48:15 -0800 (PST) Received: from popeye.remuda.com (fisbin.remuda.com [205.153.153.59]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id WAA23998 for ; Fri, 4 Apr 1997 22:48:01 -0800 (PST) Received: from localhost (scotto@localhost) by popeye.remuda.com (8.6.12/8.6.12) with SMTP id WAA01856; Fri, 4 Apr 1997 22:44:37 -0800 Date: Fri, 4 Apr 1997 22:44:36 -0800 (PST) From: Scott Overholser To: Zahemszky Gabor cc: FreeBSD questions Subject: Re: HylaFAX broken on 2.2.0-R? In-Reply-To: <199704031353.PAA01207@CoDe.hu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Here's more info: capture() { (eval "set -x; $*") >&5 2>&1 return } captureX() { (eval "set -x; $*") 2>&5 return } # # runMake target rules ... # runMakeX() { target="$1"; shift $RM $target (echo DEPTH=.; echo SRCDIR=.; cat xdefs; for i in "$@"; do echo "$i"; done )>confMakefile captureX ${MAKE} -f confMakefile $target return } runMake() { runMakeX "$@" >&5 return } On Thu, 3 Apr 1997, Zahemszky Gabor wrote: > > > > configure generates a log file which clearly shows the compiles failing. > > Somehow, configure thinks it succeeds. > > Please, send the runMake function, too! > > > CheckForLibrary() > > { > > f=$1; shift > > libs="$@"; > > cat>t.c< > int t() { $f(); return 0; } > > int main(){ t(); return 0; } > > EOF > > runMake t "t:; ${CCOMPILER} ${ENVOPTS} t.c $libs" > > } > > > > # > > # Look for an include file. > > # > > CheckForIncludeFile() > > { > > (for i do > > echo "#include \"$i\"" > > done)>t.c > > runMake t "t:; ${CCOMPILER} ${ENVOPTS} -E t.c" > > } > > > > if [ "$LIBIMAGE" = auto ]; then > > if CheckForLibrary iopen -limage && CheckForIncludeFile gl/image.h; > > then > > Note "Looks like there is support for SGI RGB images." > > LIBIMAGE=yes > > else > > LIBIMAGE=no > > fi > > Both CheckForLibrary, and CheckForIncludeFile return with the exit code of > runMake. I don't know why, runMake exit with 0. So the problem is with > runMake. >