Index: configure.in =================================================================== RCS file: /cvs/tools/config_office/configure.in,v retrieving revision 1.49.2.3.2.2 diff -p -r1.49.2.3.2.2 configure.in *** configure.in 31 Mar 2003 14:30:32 -0000 1.49.2.3.2.2 --- configure.in 31 Mar 2003 14:45:20 -0000 *************** echo "$@" >config.parms *** 19,28 **** AC_ARG_ENABLE(gcc3, [ --enable-gcc3 Deprecated: Now has no effect, checks compiler version. ],,) ! AC_ARG_ENABLE(debug, ! [ --enable-debug if you like to build with debug symbols ! Usage: --enable-debug ],,) AC_ARG_WITH(stlport4-home, [ --with-stlport4-home The location that STLport4 is installed in. The STL --- 19,34 ---- AC_ARG_ENABLE(gcc3, [ --enable-gcc3 Deprecated: Now has no effect, checks compiler version. ],,) ! AC_ARG_ENABLE(symbols, ! [ --enable-symbols Include debugging symbols in output. Warning - ! a complete build needs 8 Gb of space and takes ! much longer. (enables -g compiler flag) ! ],,) ! AC_ARG_ENABLE(debug, ! [ --enable-debug: Include debugging symbols from --enable-symbols ! plus extra debugging code. Extra large build! ! (enables -g compiler flag and dmake debug=true) ],,) AC_ARG_WITH(stlport4-home, [ --with-stlport4-home The location that STLport4 is installed in. The STL *************** esac *** 226,231 **** --- 232,245 ---- AC_MSG_RESULT([checked ($_os)]) + dnl =================================================================== + dnl First setting is whether to include symbols into final build. + dnl =================================================================== + if test "$enable_symbols" = "yes"; then + ENVCFLAGSCXX="-g" + else + ENVCFLAGSCXX="" + fi dnl =================================================================== dnl WINNT uses either 4nt or tcsh, all other O/S use tcsh. *************** dnl Test the gcc version, 3 is OK, 2.9 *** 319,346 **** dnl =================================================================== if test "$GCC" = "yes"; then AC_MSG_CHECKING([the GNU gcc compiler version]) ! _gcc_version=`$CC -dumpversion` ! _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'` ! if test "$_gcc_major" = "3"; then USE_GCC3="TRUE" - else USE_GCC3="FALSE" ! ! if test "$_gcc_major" != "2"; then AC_MSG_ERROR([found version "$_gcc_version", use version 2.95.2+ of the gcc compiler]) else ! _gcc_middle=`$CC -dumpversion | $AWK -F. '{ if ($2 != 95) print "false"; else print "true" }'` ! if test "$_gcc_middle" = "false"; then ! AC_MSG_ERROR([found version "$_gcc_version", use version 2.95.2+ of the gcc compiler]) ! else ! _gcc_minor=`$CC -dumpversion | $AWK -F. '{ if ($3 < 2) print "false"; else print "true" }'` ! if test "$_gcc_minor" = "false"; then ! AC_MSG_ERROR([found version "$_gcc_version", use version 2.95.2+ of the gcc compiler]) ! fi fi fi fi AC_MSG_RESULT([checked (gcc $_gcc_version)]) --- 333,354 ---- dnl =================================================================== if test "$GCC" = "yes"; then AC_MSG_CHECKING([the GNU gcc compiler version]) ! _gcc_version=`$CC -dumpversion` ! _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'` ! _gcc_longver=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'` + if test "$_gcc_major" = "3"; then USE_GCC3="TRUE" else USE_GCC3="FALSE" ! if test "$_gcc_longver" -lt "029502"; then AC_MSG_ERROR([found version "$_gcc_version", use version 2.95.2+ of the gcc compiler]) else ! if test "$_gcc_longver" -gt "029599"; then ! AC_MSG_ERROR([found version "$_gcc_version", Not supported. Upgrade to gcc 3]) fi fi + echo "gcc 2.95 support is not perfect, suggest upgrade to gcc 3" >>warn fi AC_MSG_RESULT([checked (gcc $_gcc_version)]) *************** done ; *** 365,371 **** dnl Change empty GNUMAKE from warning to error, pending testing. if test -z "$GNUMAKE"; then ! AC_MSG_WARN([not found build may fail]) >> warn else _make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`; _make_major=`echo $_make_version | $AWK -F. '{print $1;}'` --- 373,380 ---- dnl Change empty GNUMAKE from warning to error, pending testing. if test -z "$GNUMAKE"; then ! AC_MSG_WARN([not found build may fail]) ! echo "gnu make not found build may fail" >> warn else _make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`; _make_major=`echo $_make_version | $AWK -F. '{print $1;}'` *************** else *** 382,387 **** --- 391,397 ---- else if test "$_os" = "Darwin"; then AC_MSG_WARN([failed ($GNUMAKE $_make_version need 3.79.1+)]) + echo "$GNUMAKE $_make_version may cause problems need 3.79.1+" >> warn else AC_MSG_ERROR([failed ($GNUMAKE $_make_version need 3.79.1+)]) fi *************** if test "$_os" = "Linux" -o "$_os" = "Fr *** 511,517 **** AC_MSG_RESULT([yes]) else AC_MSG_WARN([pam_appl.h could not be found in /usr/include/security]) ! AC_MSG_WARN([pam_appl.h could not be found in /usr/include/security]) >> warn fi fi --- 521,527 ---- AC_MSG_RESULT([yes]) else AC_MSG_WARN([pam_appl.h could not be found in /usr/include/security]) ! echo "pam_appl.h could not be found in /usr/include/security" >> warn fi fi *************** if test "$_os" = "SunOS"; then *** 557,563 **** AC_MSG_CHECKING([Sun Workshop C++ Compiler]) if test "$CXX" != "CC"; then AC_MSG_WARN([Sun Workshop C++ was not found]) ! AC_MSG_WARN([Sun Worlshop C++ was not found]) >> warn else AC_MSG_RESULT([checked]) fi --- 567,573 ---- AC_MSG_CHECKING([Sun Workshop C++ Compiler]) if test "$CXX" != "CC"; then AC_MSG_WARN([Sun Workshop C++ was not found]) ! echo "Sun Workshop C++ was not found" >> warn else AC_MSG_RESULT([checked]) fi *************** if test "$_os" = "Darwin"; then *** 572,578 **** AC_MSG_CHECKING([Macosx c++ Compiler]) if test "$CXX" != "c++"; then AC_MSG_WARN([Macosx C++ was not found]) ! AC_MSG_WARN([Macosx C++ was not found]) >> warn else AC_MSG_RESULT([checked]) fi --- 582,588 ---- AC_MSG_CHECKING([Macosx c++ Compiler]) if test "$CXX" != "c++"; then AC_MSG_WARN([Macosx C++ was not found]) ! echo "Macosx C++ was not found" >> warn else AC_MSG_RESULT([checked]) fi *************** if test "$_os" = "IRIX" -o "$_os" = "IRI *** 587,593 **** AC_MSG_CHECKING([SGI MIPSpro C++ Compiler]) if test "$CXX" != "CC"; then AC_MSG_WARN([SGI MIPSpro C++ was not found]) ! AC_MSG_WARN([SGI MIPSpro C++ was not found]) >> warn else AC_MSG_RESULT([checked]) fi --- 597,603 ---- AC_MSG_CHECKING([SGI MIPSpro C++ Compiler]) if test "$CXX" != "CC"; then AC_MSG_WARN([SGI MIPSpro C++ was not found]) ! echo "SGI MIPSpro C++ was not found" >> warn else AC_MSG_RESULT([checked]) fi *************** if test "$_os" = "OSF1"; then *** 603,609 **** _compaqcxx_major=`echo $_compaqcxx_version | $AWK -F. '{ print $1 }'` if test "$_compaqcxx_major" != "V6"; then AC_MSG_WARN([found version "$_compaqc_version", use version 6 of the Compaq C++ compiler]) ! AC_MSG_WARN([found version "$_compaqc_version", use version 6 of the Compaq C++ compiler]) >> warn else dnl compiler will do AC_MSG_RESULT([checked]) --- 613,619 ---- _compaqcxx_major=`echo $_compaqcxx_version | $AWK -F. '{ print $1 }'` if test "$_compaqcxx_major" != "V6"; then AC_MSG_WARN([found version "$_compaqc_version", use version 6 of the Compaq C++ compiler]) ! echo "found version $_compaqc_version, use version 6 of the Compaq C++ compiler" >> warn else dnl compiler will do AC_MSG_RESULT([checked]) *************** if test "$_os" = "SunOS"; then *** 657,663 **** AC_MSG_RESULT([found]) else AC_MSG_WARN([patch 106327-06 not found, please install compiler patch 106327-06 or greater]) ! AC_MSG_WARN([patch 106327-06 not found, please install compiler patch 106327-06 or greater]) >> warn fi dnl *************** dnl patch 106950-11 --- 667,673 ---- AC_MSG_RESULT([found]) else AC_MSG_WARN([patch 106327-06 not found, please install compiler patch 106327-06 or greater]) ! echo "patch 106327-06 not found, please install compiler patch 106327-06 or greater" >> warn fi dnl *************** dnl patch 106950-11 *************** if test "$_os" = "SunOS"; then *** 679,685 **** AC_MSG_RESULT([found]) else AC_MSG_WARN([patch 106950-11 not found, please install linker patch 106950-11 or greater]) ! AC_MSG_WARN([patch 106950-11 not found, please install linker patch 106950-11 or greater]) >> warn fi else if test "$_os_release" = "6"; then --- 689,695 ---- AC_MSG_RESULT([found]) else AC_MSG_WARN([patch 106950-11 not found, please install linker patch 106950-11 or greater]) ! echo "patch 106950-11 not found, please install linker patch 106950-11 or greater" >> warn fi else if test "$_os_release" = "6"; then *************** if test "$_os" = "SunOS"; then *** 703,709 **** AC_MSG_RESULT([found]) else AC_MSG_WARN([patch 105591-09 not found, please install compiler patch 105591-09 or greater]) ! AC_MSG_WARN([patch 105591-09 not found, please install compiler patch 105591-09 or greater]) >> warn fi dnl *************** dnl patch 107733-08 --- 713,719 ---- AC_MSG_RESULT([found]) else AC_MSG_WARN([patch 105591-09 not found, please install compiler patch 105591-09 or greater]) ! echo "patch 105591-09 not found, please install compiler patch 105591-09 or greater" >> warn fi dnl *************** dnl patch 107733-08 *************** if test "$_os" = "SunOS"; then *** 725,731 **** AC_MSG_RESULT([found]) else AC_MSG_WARN([patch 107733-06 not found, please install linker patch 107733-08 or greater]) ! AC_MSG_WARN([patch 107733-06 not found, please install linker patch 107733-08 or greater]) >> warn fi fi fi --- 735,741 ---- AC_MSG_RESULT([found]) else AC_MSG_WARN([patch 107733-06 not found, please install linker patch 107733-08 or greater]) ! echo "patch 107733-06 not found, please install linker patch 107733-08 or greater" >> warn fi fi fi *************** else *** 828,857 **** fi AC_MSG_CHECKING([the installed JDK]) if test "$JAVA"; then - _correct_jdk_exists="false" dnl java -version sends output to stderr! _jdk=`$JAVA -J-version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//` _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'` if test "$_jdk_ver" -lt 10300; then ! AC_MSG_WARN([You need at least jdk-1.3]) ! _correct_jdk_exists="false" else - _correct_jdk_exists="true" JAVA_HOME=`echo $JAVA | $SED -n "s/\/bin\/javac//p"` AC_MSG_RESULT([checked (JDK $_jdk)]) fi else ! _correct_jdk_exists="false" ! fi ! if test "$_correct_jdk_exists" = "false"; then ! AC_MSG_ERROR([Correct jdk not found]) fi dnl =================================================================== dnl Checks for specific files. dnl =================================================================== - dnl AC_CHECK_FILE(set_soenv.1) dnl =================================================================== dnl Checks for programs. dnl =================================================================== --- 838,860 ---- fi AC_MSG_CHECKING([the installed JDK]) if test "$JAVA"; then dnl java -version sends output to stderr! _jdk=`$JAVA -J-version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//` _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'` if test "$_jdk_ver" -lt 10300; then ! AC_MSG_ERROR([You need at least jdk-1.3]) else JAVA_HOME=`echo $JAVA | $SED -n "s/\/bin\/javac//p"` AC_MSG_RESULT([checked (JDK $_jdk)]) fi else ! AC_MSG_ERROR([JAVA not found. You need at least jdk-1.3]) fi dnl =================================================================== dnl Checks for specific files. dnl =================================================================== dnl =================================================================== dnl Checks for programs. dnl =================================================================== *************** dnl testing bison and flex exist *** 1011,1028 **** dnl *************************************** AC_PATH_PROG(BISON, bison) if test -z "$BISON"; then ! AC_MSG_WARN([no bison found in \$PATH, install bison]) >> warn fi AC_PATH_PROG(FLEX, flex) if test -z "$FLEX"; then ! AC_MSG_WARN([no flex found in \$PATH, install flex]) >> warn fi dnl *************************************** dnl testing that patch exists dnl *************************************** AC_PATH_PROG(PATCH, patch) if test -z "$PATCH"; then ! AC_MSG_WARN([\"patch\" not found in \$PATH, install the development tool named\"patch"\]) >> warn fi dnl *************************************** dnl testing bash tools path on Windows --- 1014,1031 ---- dnl *************************************** AC_PATH_PROG(BISON, bison) if test -z "$BISON"; then ! AC_MSG_ERROR([no bison found in \$PATH, install bison]) fi AC_PATH_PROG(FLEX, flex) if test -z "$FLEX"; then ! AC_MSG_ERROR([no flex found in \$PATH, install flex]) fi dnl *************************************** dnl testing that patch exists dnl *************************************** AC_PATH_PROG(PATCH, patch) if test -z "$PATCH"; then ! AC_MSG_ERROR([\"patch\" not found in \$PATH, install the development tool named\"patch"\]) fi dnl *************************************** dnl testing bash tools path on Windows *************** fi *** 1109,1115 **** if test -z "$ANT"; then ! AC_MSG_RESULT([Ant not found - Some Java projects will not build]) else AC_MSG_CHECKING([if $ANT works]) cat > conftest.java << EOF --- 1112,1119 ---- if test -z "$ANT"; then ! AC_MSG_WARN([Ant not found - Some Java projects will not build]) ! echo "Ant not found - Some Java projects will not build" >>warn else AC_MSG_CHECKING([if $ANT works]) cat > conftest.java << EOF *************** EOF *** 1139,1144 **** --- 1143,1149 ---- cat conftest.java >&5 cat conftest.xml >&5 AC_MSG_WARN([Ant does not work - Some Java projects will not build!]) + echo "Ant does not work - Some Java projects will not build!" >>warn fi rm -f conftest* core core.* *.core *************** AC_SUBST(USE_GCC3) *** 1255,1260 **** --- 1260,1266 ---- AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_LIBS) AC_SUBST(ENABLE_DEBUG) + AC_SUBST(ENVCFLAGSCXX) AC_OUTPUT([set_soenv]) Index: set_soenv.in =================================================================== RCS file: /cvs/tools/config_office/set_soenv.in,v retrieving revision 1.4.2.3.2.2 diff -p -r1.4.2.3.2.2 set_soenv.in *** set_soenv.in 31 Mar 2003 14:30:33 -0000 1.4.2.3.2.2 --- set_soenv.in 31 Mar 2003 14:45:26 -0000 *************** my ( $USR, $ETC, $BIN, $LIB, $INC, $INCL *** 79,85 **** $STLPORT_stlport, $STLPORT_inc_stlport, $PERL_PATH ); # Environment variables. ! my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $ANT_HOME, $SHELL, $GCC_HOME, $UPD, $SOLARUPD, $WORK_STAMP, $TF_ONE51, $TF_UCB, $URD_ONLY, $SOLARROOT, $SOLARSRC, $RSCRES, $DEVROOT, $SOLARVER, $SOLARVERSION, $SOLARENV, $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI, --- 79,85 ---- $STLPORT_stlport, $STLPORT_inc_stlport, $PERL_PATH ); # Environment variables. ! my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $SHELL, $GCC_HOME, $UPD, $SOLARUPD, $WORK_STAMP, $TF_ONE51, $TF_UCB, $URD_ONLY, $SOLARROOT, $SOLARSRC, $RSCRES, $DEVROOT, $SOLARVER, $SOLARVERSION, $SOLARENV, $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI, *************** my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAV *** 87,93 **** $LD_LIBRARY_PATH, $PATH, $SOLARDEF, $SOLAREXTRAINC, $SOLAREXTRALIB, $SOLARINCLUDES, $SOLARLIB, $SOLARINC, $LOCALINI, $MAC_LIB, $PATHEXTRA, $FRAMEWORKSHOME, $COMEX, $MULTITHREAD_OBJ, $PERL, $COMP_ENV, $IENV, $ILIB, $WIN_INCLUDE, $JAVAHOME, $WIN_LIB, $WIN_HOME, $PSDK_HOME, $USE_NEW_SDK, $NO_HIDS, ! $BISON_HAIRY, $BISON_SIMPLE, $TEMP, $COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS, $WIN_GNUCOPY, $WIN_TOUCH, $STLPORT4, $USE_GCC3, $ENABLE_DEBUG ); # #------------------------------------------- --- 87,93 ---- $LD_LIBRARY_PATH, $PATH, $SOLARDEF, $SOLAREXTRAINC, $SOLAREXTRALIB, $SOLARINCLUDES, $SOLARLIB, $SOLARINC, $LOCALINI, $MAC_LIB, $PATHEXTRA, $FRAMEWORKSHOME, $COMEX, $MULTITHREAD_OBJ, $PERL, $COMP_ENV, $IENV, $ILIB, $WIN_INCLUDE, $JAVAHOME, $WIN_LIB, $WIN_HOME, $PSDK_HOME, $USE_NEW_SDK, $NO_HIDS, ! $TEMP, $COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS, $WIN_GNUCOPY, $WIN_TOUCH, $STLPORT4, $USE_GCC3, $ENABLE_DEBUG ); # #------------------------------------------- *************** elsif ( $platform eq "$Linux" ) *** 386,392 **** { print "Setting Linux Alpha specific values... "; $outfile = "LinuxAlphaEnv.Set"; $CPU = "A"; ! $CPUNAME = "ALPHA"; $DLLSUFFIX = "la"; $OUTPATH = "unxlnga"; $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."alpha"; --- 386,392 ---- { print "Setting Linux Alpha specific values... "; $outfile = "LinuxAlphaEnv.Set"; $CPU = "A"; ! $CPUNAME = "ALPHA_"; $DLLSUFFIX = "la"; $OUTPATH = "unxlnga"; $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."alpha"; *************** elsif ( $platform eq "$Tru64" ) *** 445,451 **** $COM = "CXX"; $COMPATH = '@COMPATH@'; $CPU = "A"; ! $CPUNAME = "ALPHA"; $CVER = "C62"; $DLLSUFFIX = "t64"; $GUI = "UNX"; --- 445,451 ---- $COM = "CXX"; $COMPATH = '@COMPATH@'; $CPU = "A"; ! $CPUNAME = "ALPHA_"; $CVER = "C62"; $DLLSUFFIX = "t64"; $GUI = "UNX"; *************** if ($USE_SHELL eq "tcsh") *** 624,630 **** } if ( '@STLPORT4@' eq $no_stl ) ! { AddWarning( "set_soenv", "No path to STLport was given with the --with-stlport4-home option. The one provided with OOo will be build." ); $STLPORT4 = "$no_stl"; } --- 624,630 ---- } if ( '@STLPORT4@' eq $no_stl ) ! { $STLPORT4 = "$no_stl"; } *************** if (($platform eq $Linux) or ($platform *** 644,659 **** $GCC_HOME = $no_gcc_home; } - # Ant Home directory - if ( '@ANT_HOME@' eq $no_ant ) - { AddWarning( "set_soenv", "Ant was not found in the path. Some Java projects will not build." ); - $ANT_HOME = "$no_ant"; - } - else - { # ANT_HOME as argument from autoconf. - $ANT_HOME = '@ANT_HOME@'; - } - # # E. Determining the envionment values based on the information # that was gathered earlier on. --- 644,649 ---- *************** CreateFileHeader( *OUT_BAT, $UPD, $platf *** 1296,1302 **** ToFile( "SRC_ROOT", $SRC_ROOT, "e" ); ToFile( "SHELL", $SHELL, "e" ); ToFile( "JAVA_HOME", $JAVA_HOME, "e" ); ! ToFile( "ANT_HOME", $ANT_HOME, "e" ); ToFile( "JDKLIB", $JAVA_LIB, "e" ); ToFile( "STLPORT4", $STLPORT4, "e" ); ToFile( "ASM_PATH", $ASM_PATH, "e" ); --- 1286,1292 ---- ToFile( "SRC_ROOT", $SRC_ROOT, "e" ); ToFile( "SHELL", $SHELL, "e" ); ToFile( "JAVA_HOME", $JAVA_HOME, "e" ); ! ToFile( "ANT_HOME", "@ANT_HOME@", "e" ); ToFile( "JDKLIB", $JAVA_LIB, "e" ); ToFile( "STLPORT4", $STLPORT4, "e" ); ToFile( "ASM_PATH", $ASM_PATH, "e" ); *************** ToFile( "CXX", $CXX, *** 1619,1627 **** if ( $COM ne "MSC" ) { ToFile( "LINK", $CC, "e" ); } ToFile( "GXX_INCLUDE_PATH", "@GXX_INCLUDE_PATH@","e" ); - ToFile( "BISON_HAIRY", $BISON_HAIRY, "e" ); - ToFile( "BISON_SIMPLE", $BISON_SIMPLE, "e" ); ToFile( "COMMON_BUILD_TOOLS",$COMMON_BUILD_TOOLS, "e" ); if ($platform ne "$Winnt") { ToFile( "TEMP", $TEMP, "e" ); --- 1609,1616 ---- if ( $COM ne "MSC" ) { ToFile( "LINK", $CC, "e" ); } + ToFile( "ENVCFLAGSCXX", "@ENVCFLAGSCXX@", "e" ); ToFile( "GXX_INCLUDE_PATH", "@GXX_INCLUDE_PATH@","e" ); ToFile( "COMMON_BUILD_TOOLS",$COMMON_BUILD_TOOLS, "e" ); if ($platform ne "$Winnt") { ToFile( "TEMP", $TEMP, "e" ); *************** sub ToFile *** 1929,1939 **** { if ( $_[ 2 ] eq "e" ) { # Write an environment variable to file. if (defined $_[ 1 ]) ! { printf("%-12s %-17s %-10s %-39s\n", "The variable", $_[ 0 ], "is set to:", $_[ 1 ]) ; # to stdout ! print OUT "$setenv $_[ 0 ] \"$_[ 1 ]\"$newline"; # to tcsh file if(defined($outfile_sh)) ! { print OUT_SH "$_[ 0 ]=\"$_[ 1 ]\"$newline"; # to sh file ! $exportvars .= " $_[ 0 ]"; # add to export list for sh file } if(defined($outfile_bat)) { $win_format_var = WinFormat( $_[ 1 ] ); #Filter for Windows --- 1918,1928 ---- { if ( $_[ 2 ] eq "e" ) { # Write an environment variable to file. if (defined $_[ 1 ]) ! { printf("%-12s %-17s %-10s %s\n", "The variable", $_[ 0 ], "is set to:", $_[ 1 ]) ; # to stdout ! print OUT "$setenv $_[ 0 ] \"$_[ 1 ]\"$newline"; # to tcsh file if(defined($outfile_sh)) ! { print OUT_SH "$_[ 0 ]=\"$_[ 1 ]\"$newline"; # to sh file ! $exportvars .= " $_[ 0 ]"; # add to export list for sh file } if(defined($outfile_bat)) { $win_format_var = WinFormat( $_[ 1 ] ); #Filter for Windows *************** sub ToFile *** 1942,1950 **** } } else ! { printf("%-12s %-17s %-10s %-39s\n", "The variable", $_[ 0 ], "is set to:", "unset") ; # to stdout ! $unsetvars .= "$unsetenv $_[ 0 ] >& /dev/null$newline"; # for tcsh file ! $unsetvarssh .= " $_[ 0 ]"; # for sh file if(defined($outfile_bat)) { $unsetvarsbat .= "$unset $_[ 0 ] >& NUL$newline"; } --- 1931,1939 ---- } } else ! { printf("%-12s %-17s %-10s %s\n", "The variable", $_[ 0 ], "is set to:", "unset") ; # to stdout ! $unsetvars .= "$unsetenv $_[ 0 ] >& /dev/null$newline"; # for tcsh file ! $unsetvarssh .= " $_[ 0 ]"; # for sh file if(defined($outfile_bat)) { $unsetvarsbat .= "$unset $_[ 0 ] >& NUL$newline"; } *************** sub ToFile *** 1953,1959 **** elsif ( $_[ 2 ] eq "a" ) { # Write an alias to file. print "The $_[ 0 ] is set to: $_[ 1 ]\n"; # to stdout ! print OUT "$_[ 0 ] $_[ 1 ] $newline"; # to tcsh file print OUT_SH "$_[ 0 ]=$_[ 1 ] $newline" if defined($outfile_sh); # to sh file if(defined($outfile_bat)) # create the correct 4nt alias format { my $aliastmp = $_[ 1 ]; --- 1942,1948 ---- elsif ( $_[ 2 ] eq "a" ) { # Write an alias to file. print "The $_[ 0 ] is set to: $_[ 1 ]\n"; # to stdout ! print OUT "$_[ 0 ] $_[ 1 ] $newline"; # to tcsh file print OUT_SH "$_[ 0 ]=$_[ 1 ] $newline" if defined($outfile_sh); # to sh file if(defined($outfile_bat)) # create the correct 4nt alias format { my $aliastmp = $_[ 1 ];