aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-26 00:39:10 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-26 00:39:10 +0000
commit62a98c878c9ee79463e7562b3f2b6a4d305beafc (patch)
treecc5198246117a3cce2b340441def12a43a4fa81b /acinclude.m4
parent03e1f626e59fc839b4e67eaf2683dea2cd347b9e (diff)
downloadtor-62a98c878c9ee79463e7562b3f2b6a4d305beafc.tar
tor-62a98c878c9ee79463e7562b3f2b6a4d305beafc.tar.gz
r12992@catbus: nickm | 2007-05-25 20:39:07 -0400
Oops. we actually _do_ need the extended path; we just do not want to persist it. svn:r10349
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e853202e4..e0c1706c6 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -144,6 +144,7 @@ TOR_DEFINE_CODEPATH($tor_cv_library_$1_dir, $1)
if test -z "$CROSS_COMPILE"; then
AC_CACHE_CHECK([whether we need extra options to link $1],
tor_cv_library_$1_linker_option, [
+ orig_LDFLAGS="$LDFLAGS"
runs=no
linked_with=nothing
if test -d "$tor_cv_library_$1_dir/lib"; then
@@ -154,9 +155,9 @@ if test -z "$CROSS_COMPILE"; then
for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
"-Wl,-rpath,$tor_trydir" ; do
if test "$tor_tryextra" = "(none)"; then
- LDFLAGS="$tor_saved_LDFLAGS"
+ LDFLAGS="$orig_LDFLAGS"
else
- LDFLAGS="$tor_tryextra $tor_saved_LDFLAGS"
+ LDFLAGS="$tor_tryextra $orig_LDFLAGS"
fi
AC_RUN_IFELSE(AC_LANG_PROGRAM([$5], [$6]),
[runnable=yes], [runnable=no])
@@ -169,7 +170,7 @@ if test -z "$CROSS_COMPILE"; then
if test "$runnable" = no; then
AC_MSG_ERROR([Found linkable $1 in $tor_cv_library_$1_dir, but it does not seem to run, even with -R. Maybe specify another using $7}])
fi
- LDFLAGS="$tor_saved_LDFLAGS"
+ LDFLAGS="$orig_LDFLAGS"
]) dnl end cache check check for extra options.
if test "$tor_cv_library_$1_linker_option" != "(none)" ; then