Brian, Thanks a lot. It went beyond the last error after I used gmake. It ran for a couple of hours and then quit with the following error: /u1/santosh/cfiles/GCC_installs/gcc-4.1.1/gcc-4.1.1/libjava/classpath/configure: syntax error at line 11740: `QT_INCLUDE_DIR=$' unexpected configure: error: /bin/sh '/u1/santosh/cfiles/GCC_installs/gcc-4.1.1/gcc-4.1.1/libjava/classpath/configure' failed for classpath gmake[2]: *** [configure-target-libjava] Error 1 gmake[2]: Leaving directory `/u1/santosh/gcc_obj' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/u1/santosh/gcc_obj' gmake: *** [bootstrap-lean] Error 2 I have pasted below the line it is failing on if test "x$HAVE_QT4" = "xyes"; then QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui) EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt" as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh` .. .. .. Thanks, S