Codebase list gtkwave / debian/1.3.63-1 configure3
debian/1.3.63-1

Tree @debian/1.3.63-1 (Download .tar.gz)

configure3 @debian/1.3.63-1raw · history · blame

#!/bin/sh

cd src

if [ `uname` = "Linux" ]
	then
	echo "Linux detected, configuring makefiles for 64-bit fileio support..."
	for BIGF in Makefile libz/Makefile libbz2/Makefile helpers/Makefile ;
		do
		cat $BIGF | sed 's/\(^CFLAGS =.*$\)/\1 $(BIGFILES)/' >$BIGF.tmp
		mv $BIGF.tmp $BIGF
		done
	fi

if [ `uname` = "AIX" ]
	then
	echo "AIX detected, configuring for > 256MB memory usage..."
	cat Makefile | sed 's/\(^CFLAGS =.*$\)/\1 $(AIXFLAGS)/' >Makefile.tmp
	mv Makefile.tmp Makefile
	fi

if [ `uname` = "FreeBSD" ]
	then
	echo "FreeBSD detected, configuring for thread usage (currently disabled)..."
	cat Makefile | sed 's/^PTHLIB =.*$/PTHLIB = /' >Makefile.tmp
	mv Makefile.tmp Makefile
	cat helpers/Makefile | sed 's/-lpthread//' >helpers/Makefile.tmp
	mv helpers/Makefile.tmp helpers/Makefile
	fi

#
# if you don't know what ae2 is, you shouldn't be using it, sorry...
#
for AETLIB in /afs/awd/projects/simarama/releases/latest/libae2rw.a /afs/awd/projects/simarama/releases/latest/libae2rw.so;
do
if [ -e $AETLIB ]
	then
	echo "AET2 library found at "$AETLIB", configuring for use..."
	cat Makefile | sed 's/\(^CFLAGS =.*$\)/\1 -DAET2_IS_PRESENT/' | sed "s#AET2LIB =#AET2LIB = $AETLIB#" >Makefile.tmp
	mv Makefile.tmp Makefile
	exit
	fi
done