diff options
author | Nathanael Nerode <neroden@gcc.gnu.org> | 2002-10-03 18:50:19 +0000 |
---|---|---|
committer | Nathanael Nerode <neroden@gcc.gnu.org> | 2002-10-03 18:50:19 +0000 |
commit | fe3d5b7ff102876395e2a3c0035460d96fb49970 (patch) | |
tree | c6aeb90e2c4d5ab136a2026ec3b5e17f59ad1eba /configure.in | |
parent | 3db03e43f9a17ad648ebe985f748334de1f6bc32 (diff) | |
download | gcc-fe3d5b7ff102876395e2a3c0035460d96fb49970.zip gcc-fe3d5b7ff102876395e2a3c0035460d96fb49970.tar.gz gcc-fe3d5b7ff102876395e2a3c0035460d96fb49970.tar.bz2 |
Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
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.
From-SVN: r57782
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 bee4c29..98f56c3 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}" | \ |