|
@@ -2996,6 +2996,26 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler requires -rpath" >&5
|
|
|
|
|
+$as_echo_n "checking whether the compiler requires -rpath... " >&6; }
|
|
|
|
|
+if ${ax_cv_prog_cc_rpath+:} false; then :
|
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
|
|
+else
|
|
|
|
|
+
|
|
|
|
|
+ ax_cv_prog_cc_rpath=
|
|
|
|
|
+ for path in `${CXX} -print-search-dirs | awk '/^libraries:/ {print substr($0, 13)}' | tr ':' ' '`; do
|
|
|
|
|
+ if [ -r "${path}/libstdc++.so" ]; then
|
|
|
|
|
+ ax_cv_prog_cc_rpath="${path}"
|
|
|
|
|
+ LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-Wl,-rpath,${path}"
|
|
|
|
|
+ break
|
|
|
|
|
+ fi
|
|
|
|
|
+ done
|
|
|
|
|
+
|
|
|
|
|
+fi
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_rpath" >&5
|
|
|
|
|
+$as_echo "$ax_cv_prog_cc_rpath" >&6; }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
#checkpoint
|
|
#checkpoint
|
|
|
cat >confcache <<\_ACEOF
|
|
cat >confcache <<\_ACEOF
|
|
|
# This file is a shell script that caches the results of configure
|
|
# This file is a shell script that caches the results of configure
|