summaryrefslogtreecommitdiff
path: root/run_tests.sh.in
diff options
context:
space:
mode:
authormichaelld2008-02-21 19:16:45 +0000
committermichaelld2008-02-21 19:16:45 +0000
commit776da31eb84e146a8adf1e3ca7e017c1d9992ce3 (patch)
treee992059b2d7a647fce943469c704a505a2819bed /run_tests.sh.in
parentfd7f6c8cfacb4afaca28b22325f450342edd5218 (diff)
downloadgnuradio-776da31eb84e146a8adf1e3ca7e017c1d9992ce3.tar.gz
gnuradio-776da31eb84e146a8adf1e3ca7e017c1d9992ce3.tar.bz2
gnuradio-776da31eb84e146a8adf1e3ca7e017c1d9992ce3.zip
Merged build_config branch into trunk:
1) Modified top-level run_tests.sh script: a) to execute code for setting or changing the library search path in Darwin (DYLD_LIBRARY_PATH) or Windows (PATH) on those host OSs only, not on other host OSs. b) Added local (to the component making check) library paths to those same search paths, since libtool doesn't do it (unlike in Linux). 2) In all AM Makefiles -except those dealing with USRP firmware-, changes INCLUDES to AM_CPPFLAGS since the former is deprecated. 3) Changed AM_CPPFLAGS to FW_INCLUDES for commands .c.rel in USRP firmware. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7769 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'run_tests.sh.in')
-rw-r--r--run_tests.sh.in66
1 files changed, 36 insertions, 30 deletions
diff --git a/run_tests.sh.in b/run_tests.sh.in
index 1562eeec6..35e24d794 100644
--- a/run_tests.sh.in
+++ b/run_tests.sh.in
@@ -75,50 +75,56 @@ do
fi
done
-# Add the grlibdir paths to the front of any PATH variable
-if [ "$grlibdir" != "" ]
-then
- # For OS/X
- if [ "$DYLD_LIBRARY_PATH" = "" ]
- then
- DYLD_LIBRARY_PATH=$grlibdir
- else
- DYLD_LIBRARY_PATH=$grlibdir:$DYLD_LIBRARY_PATH
- fi
-
- # For Win32
- if [ "$PATH" = "" ]
- then
- PATH=$grlibdir
- else
- PATH=$grlibdir:$PATH
- fi
-fi
+# Add 'mylibdir' to the start of the library load path, to get local
+# (to this component) created libraries
# Where to find pre-installed libraries
withlibdirs=@with_LIBDIRPATH@
-# Add the withdirs paths to the end of any PATH variable
-if [ "$withlibdirs" != "" ]
-then
- # For OS/X
+case "@host_os@" in
+ darwin*)
+ # Special Code for executing on Darwin / Mac OS X only
if [ "$DYLD_LIBRARY_PATH" = "" ]
then
- DYLD_LIBRARY_PATH=$withlibdirs
+ DYLD_LIBRARY_PATH=$mylibdir
else
+ DYLD_LIBRARY_PATH=$mylibdir:$DYLD_LIBRARY_PATH
+ fi
+ # DYLD_LIBRARY_PATH will not be empty now
+ # Add the grlibdir paths to the front of any library load variable
+ if [ "$grlibdir" != "" ]
+ then
+ DYLD_LIBRARY_PATH=$grlibdir:$DYLD_LIBRARY_PATH
+ fi
+ # Add the withdirs paths to the end of any library load variable
+ if [ "$withlibdirs" != "" ]
+ then
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$withlibdirs
fi
-
- # For Win32
+ export DYLD_LIBRARY_PATH
+ ;;
+ cygwin*|win*|mingw*)
+ # Special Code for executing on Win32 variants only
if [ "$PATH" = "" ]
then
- PATH=$withlibdirs
+ PATH=$mylibdir
else
+ PATH=$mylibdir:$PATH
+ fi
+ # PATH will not be empty now
+ # Add the grlibdir paths to the front of any library load variable
+ if [ "$grlibdir" != "" ]
+ then
+ PATH=$grlibdir:$PATH
+ fi
+ # Add the withdirs paths to the end of any library load variable
+ if [ "$withlibdirs" != "" ]
+ then
PATH=$PATH:$withlibdirs
fi
-fi
-
-export DYLD_LIBRARY_PATH
+ export PATH
+ ;;
+esac
# Don't load user or system prefs
GR_DONT_LOAD_PREFS=1