diff options
author | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-03 18:50:19 +0000 |
---|---|---|
committer | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-03 18:50:19 +0000 |
commit | 949b0daae662e40e8609385a48fdc9b933e8442f (patch) | |
tree | c6aeb90e2c4d5ab136a2026ec3b5e17f59ad1eba /configure.in | |
parent | 02195592644660a5a422970a01e05db191c4ea48 (diff) | |
download | gcc-949b0daae662e40e8609385a48fdc9b933e8442f.tar.gz |
2002-10-03 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
* configure.in: Make RPATH_ENVVAR substitution more autoconfy.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/configure.in b/configure.in index bee4c2998a6..98f56c34ebf 100644 --- a/configure.in +++ b/configure.in @@ -1325,17 +1325,18 @@ if test "${shared}" = "yes" ; then Makefile > Makefile.tem rm -f Makefile mv -f Makefile.tem Makefile - - case "${host}" in - *-*-hpux*) - sed -e 's/^RPATH_ENVVAR[ ]*=.*$/RPATH_ENVVAR = SHLIB_PATH/' \ - Makefile > Makefile.tem - rm -f Makefile - mv -f Makefile.tem Makefile - ;; - esac fi + +case "${host}" in + *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; + *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; +esac +sed -e "s/@RPATH_ENVVAR@/${RPATH_ENVVAR}/" Makefile > Makefile.tem +rm -f Makefile +mv -f Makefile.tem Makefile + + # Base args. Strip norecursion, cache-file, srcdir, host, build, target. # These are the ones we might not want to pass down to subconfigures. baseargs=`echo "${arguments}" | \ |