# Support custom software installed with
# ./configure --prefix=$HOME/sys

# binaries
prepend_if_exists PATH $HOME/sys/bin
prepend_if_exists PATH $HOME/.local/bin

# libs
prepend_if_exists LD_LIBRARY_PATH $HOME/sys/lib
prepend_if_exists LD_LIBRARY_PATH $HOME/sys/lib64

# man
prepend_if_exists MANPATH $HOME/sys/share/man
prepend_if_exists MANPATH /usr/share/man

# pkg-config
prepend_if_exists PKG_CONFIG_PATH $HOME/sys/lib/pkgconfig
prepend_if_exists PKG_CONFIG_PATH $HOME/sys/lib64/pkgconfig

# Python
prepend_if_exists PYTHONPATH $HOME/python
prepend_if_exists PYTHONPATH $HOME/sys/lib/python2.7/site-packages
prepend_if_exists PYTHONPATH $HOME/sys/lib64/python2.7/site-packages

# Gnuradio
prepend_if_exists GRC_BLOCKS_PATH $HOME/sys/share/gnuradio/grc


# perl stuff
perlversion=$(perl -e 'print $^V')
perlversion=${perlversion#v}
prepend_if_exists PERL5LIB $HOME/sys/lib/site_perl/$perlversion
prepend_if_exists PERL5LIB $HOME/sys/lib/perl5/site_perl/$perlversion
prepend_if_exists PERL5LIB $HOME/sys/lib/perl5