diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-12-18 17:56:20 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-12-18 18:03:49 +0100 |
commit | 1bffa142c530b638e245e1aca58a27414d65e927 (patch) | |
tree | 6b6be62ed9c7d4bd4709a026f754f59e9c5ab3aa /odk/config | |
parent | 6e06bd6cb5199b5164975eff97dd22b0a69829e5 (diff) |
fdo#72598: odk: remove SunStudio support
No idea if the GCC stuff that's in there actually works.
Change-Id: Idd1b93edd88609f3c09d14134d00a15fa9c0b0b7
Diffstat (limited to 'odk/config')
-rwxr-xr-x | odk/config/configure.pl | 40 | ||||
-rw-r--r-- | odk/config/setsdkenv_unix.sh.in | 12 |
2 files changed, 2 insertions, 50 deletions
diff --git a/odk/config/configure.pl b/odk/config/configure.pl index 588f80bf45ef..dde3a94cf773 100755 --- a/odk/config/configure.pl +++ b/odk/config/configure.pl @@ -77,12 +77,6 @@ $main::OO_SDK_SED_HOME_SUGGESTION = searchprog("sed"); $main::OO_SDK_CPP_HOME = ""; $main::cppName = "gcc"; $main::cppVersion = "4.0.1"; -if ( $main::operatingSystem =~ m/solaris/ ) -{ - $main::cppName = "CC"; - $main::cppVersion = "5.2"; -} -$main::OO_SDK_CC_55_OR_HIGHER = ""; $main::OO_SDK_CPP_HOME_SUGGESTION = searchprog($main::cppName); $main::OO_SDK_JAVA_HOME = ""; @@ -420,39 +414,6 @@ while ( (!$main::correctVersion) && $main::OO_SDK_CPP_HOME = ""; } } - } else - { - # for Solaris we have to check the version too - open(FILE, "$OO_SDK_CPP_HOME/$main::cppName -V 2>&1 |"); - my @lines = <FILE>; - my $testVersion = $lines[0]; - if ( $testVersion eq "") - { - print " The '$main::cppName' command found at $main::OO_SDK_CPP_HOME/$main::cppName is not a "; - print " Solaris C++ compiler.\nSet the environment variable OO_SDK_CPP_HOME to your Solaris C++ compiler directory.\n"; - } else - { - if ($testVersion =~ m#((\d+\.)+\d+)# ) - { - $testVersion = $1; - } - $main::correctVersion = testVersion($main::cppVersion, $testVersion, "$main::OO_SDK_CPP_HOME/$main::cppName", 1); - if ( !$main::correctVersion ) - { - print " The '$main::cppName' command found at '$main::OO_SDK_CPP_HOME' has a wrong version\n"; - if ( skipChoice("C++ compiler") == 1 ) - { - $main::correctVersion = 1; - } - - $main::OO_SDK_CPP_HOME = ""; - } else { - $main::correctVersion = testVersion("5.5", $testVersion, "$main::OO_SDK_CPP_HOME/$main::cppName", 2); - if ( $main::correctVersion ) { - $main::OO_SDK_CC_55_OR_HIGHER = $testVersion; - } - } - } } } } else @@ -857,7 +818,6 @@ sub prepareScriptFile() $_ =~ s#\@OO_SDK_CAT_HOME\@#$main::OO_SDK_CAT_HOME#go; $_ =~ s#\@OO_SDK_SED_HOME\@#$main::OO_SDK_SED_HOME#go; $_ =~ s#\@OO_SDK_CPP_HOME\@#$main::OO_SDK_CPP_HOME#go; - $_ =~ s#\@OO_SDK_CC_55_OR_HIGHER\@#$main::OO_SDK_CC_55_OR_HIGHER#go; $_ =~ s#\@OO_SDK_JAVA_HOME\@#$main::OO_SDK_JAVA_HOME#go; $_ =~ s#\@SDK_AUTO_DEPLOYMENT\@#$main::SDK_AUTO_DEPLOYMENT#go; $_ =~ s#\@OO_SDK_OUTPUT_DIR\@#$main::OO_SDK_OUTPUT_DIR#go; diff --git a/odk/config/setsdkenv_unix.sh.in b/odk/config/setsdkenv_unix.sh.in index bffab3d0b2d4..3254f4335de8 100644 --- a/odk/config/setsdkenv_unix.sh.in +++ b/odk/config/setsdkenv_unix.sh.in @@ -58,9 +58,6 @@ OO_SDK_SED_HOME=@OO_SDK_SED_HOME@ # Example: OO_SDK_CPP_HOME=/usr/bin OO_SDK_CPP_HOME=@OO_SDK_CPP_HOME@ -# Solaris only -OO_SDK_CC_55_OR_HIGHER=@OO_SDK_CC_55_OR_HIGHER@ - # Directory of the Java SDK. # Example: OO_SDK_JAVA_HOME=/usr/jdk/jdk1.6.0_10 OO_SDK_JAVA_HOME=@OO_SDK_JAVA_HOME@ @@ -155,8 +152,8 @@ case ${sdk_platform} in directoryname=solintel platform='Solaris x86' fi - comid=C52 - pltfrm=sunpro + comid=gcc3 + pltfrm=gcc soext=so exampleout=SOLARISexample.out LD_LIBRARY_PATH=${OO_SDK_HOME}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${LD_LIBRARY_PATH} @@ -261,11 +258,6 @@ if [ -n "${OO_SDK_CPP_HOME}" ] then PATH=${OO_SDK_CPP_HOME}:${PATH} export OO_SDK_CPP_HOME - - if [ -n "${OO_SDK_CC_55_OR_HIGHER}" ] - then - export OO_SDK_CC_55_OR_HIGHER - fi fi # Add directory of the Java tools to the path, if necessary. |