summaryrefslogtreecommitdiff
path: root/odk/setsdkenv_unix.sh.in
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-07 16:30:36 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-07 16:30:36 +0000
commit760bdd27f59150177dd2ad8a039b8740724a144f (patch)
tree86f6000f5afbd71ea91124ea455f59886f4701ab /odk/setsdkenv_unix.sh.in
parent737e8f4c782bd2bdbb152955f28a87d1106ee5ee (diff)
INTEGRATION: CWS accanonical (1.2.2); FILE MERGED
2005/03/07 17:04:50 rene 1.2.2.2: RESYNC: (1.2-1.3); FILE MERGED 2005/02/01 18:35:59 rene 1.2.2.1: #i39684# remove uname from odk
Diffstat (limited to 'odk/setsdkenv_unix.sh.in')
-rw-r--r--odk/setsdkenv_unix.sh.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/odk/setsdkenv_unix.sh.in b/odk/setsdkenv_unix.sh.in
index fd24904f4624..e25bcbfd8276 100644
--- a/odk/setsdkenv_unix.sh.in
+++ b/odk/setsdkenv_unix.sh.in
@@ -77,12 +77,12 @@ then
fi
# Get the operating system.
-sd_platform=`uname -s`
+sd_platform=`./config.guess | cut -d"-" -f3,4`
# Set the directory name.
case $sd_platform in
- SunOS)
- sd_proctype=`uname -p`
+ solaris*)
+ sd_proctype=`./config.guess | cut -d"-" -f1`
if [ "$sd_proctype" = "sparc" ]
then
directoryname=solsparc
@@ -96,7 +96,7 @@ case $sd_platform in
export LD_LIBRARY_PATH
;;
- Darwin)
+ darwin)
SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | $OO_SDK_CPP_HOME/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
export SDK_GXX_INCLUDE_PATH
@@ -107,7 +107,7 @@ case $sd_platform in
export DYLD_LIBRARY_PATH
;;
- Linux)
+ linux-gnu)
SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | $OO_SDK_CPP_HOME/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
export SDK_GXX_INCLUDE_PATH
@@ -117,7 +117,7 @@ case $sd_platform in
LD_LIBRARY_PATH=$OO_SDK_HOME/$directoryname/lib:$OO_EXAMPLE_OUT/$exampleout/lib:$OFFICE_PROGRAM_PATH:.:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
;;
- FreeBSD)
+ freebsd)
SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | $OO_SDK_CPP_HOME/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
export SDK_GXX_INCLUDE_PATH