[orca] Fix for bug #626640 - Added check for the OS at configure.in and turn into a variable the user's PAT



commit c890037c8060e30cb71a457d4efdde9e64feb3cb
Author: Juanje Ojeda <jojeda emergya es>
Date:   Wed Aug 11 17:44:01 2010 +0200

    Fix for bug #626640 - Added check for the OS at configure.in and turn into a variable the user's PATH

 configure.in     |   12 ++++++++++++
 src/orca/orca.in |    2 +-
 2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index bf5e56b..2a689ac 100644
--- a/configure.in
+++ b/configure.in
@@ -64,6 +64,18 @@ if test x$louis_available = "xyes"; then
 fi
 AC_SUBST(LOUIS_TABLE_DIR)
 
+dnl Check for the OS. On *Solaris systems the PATH must be setted
+PLATFORM=`uname -a`
+case "${PLATFORM}" in
+    *SunOS*)
+            PLATFORM_PATH=":/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/X11R6/bin"
+            ;;
+    *Linux*)
+            PLATFORM_PATH=":/usr/bin:/usr/sbin:/bin"
+            ;;
+esac
+AC_SUBST(PLATFORM_PATH)
+
 AC_OUTPUT([ 
 run_pylint.sh
 Makefile
diff --git a/src/orca/orca.in b/src/orca/orca.in
index 05c0844..7ef006a 100644
--- a/src/orca/orca.in
+++ b/src/orca/orca.in
@@ -30,7 +30,7 @@
 
 # Set the user's $PATH for this script.
 #
-PATH="${PATH}:/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/X11R6/bin"
+PATH="${PATH} PLATFORM_PATH@"
 export PATH
 
 # Save the arguments away.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]