--- config_office/configure.in.orig 2003-07-15 19:10:13.000000000 +0200 +++ config_office/configure.in 2003-07-15 20:23:08.000000000 +0200 @@ -670,7 +670,7 @@ fi else if test "$GXX" = "yes"; then - _gxx_include_path=`echo "#include " | $CXX -E -xc++ - | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -1` + _gxx_include_path=`echo "#include " | $CXX -E -xc++ - | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1` if test "$_gxx_include_path" = "/usr/libexec/(null)/include"; then _gxx_include_path="/usr/include" fi --- odk/configure.pl.orig 2003-06-18 23:33:47.000000000 +0200 +++ odk/configure.pl 2003-07-18 19:29:51.000000000 +0200 @@ -226,7 +226,7 @@ } else { #check version - my $testVersion = `$main::OO_SDK_JAVA_HOME/bin/java -version 2>&1 | egrep "java version" | head -1 | sed -e 's#.*version "##' | sed -e 's#".*##'`; + my $testVersion = `$main::OO_SDK_JAVA_HOME/bin/java -version 2>&1 | egrep "java version" | head -n 1 | sed -e 's#.*version "##' | sed -e 's#".*##'`; $main::correctVersion = testVersion($main::javaVersion, $testVersion, "$main::OO_SDK_JAVA_HOME/bin/java"); if ( !$main::correctVersion )