some versions of Linux puke on line 877 of DQS/SRC/configure:

	  cat > Imakefile <<'EOF'

simply comment it out...

***************************************************************

INSTALL sometime pukes(particularly when changing compilers) - 
needs works