;;
esac
- OLD_LDFLAGS="$LDFLAGS"
- LDFLAGS="-Wl,-rpath,$DEAL_II_PATH/lib $LDFLAGS"
- { $as_echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-rpath" >&5
-$as_echo_n "checking whether compiler understands option -Wl,-rpath... " >&6; }
+
+ OLD_LDFLAGS="$LDFLAGS"
+ LDFLAGS="-Wl,-soname,libbase.so.6.2.1 $LDFLAGS $LDFLAGSPIC $SHLIBFLAGS"
+ { $as_echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-soname" >&5
+$as_echo_n "checking whether compiler understands option -Wl,-soname... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
+
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
- LD_PATH_OPTION="-Wl,-rpath "
+ DEAL_II_LD_UNDERSTANDS_SONAME="yes"
+
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- { $as_echo "$as_me:$LINENO: result: no" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
- LDFLAGS="$OLD_LDFLAGS"
- LD_PATH_OPTION="no"
+ DEAL_II_LD_UNDERSTANDS_SONAME="no"
+
+
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
-
+ LDFLAGS="$OLD_LDFLAGS"
OLD_LDFLAGS="$LDFLAGS"
- LDFLAGS="-Wl,-soname,libbase.so.6.2.1 $LDFLAGS $LDFLAGSPIC $SHLIBFLAGS"
- { $as_echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-soname" >&5
-$as_echo_n "checking whether compiler understands option -Wl,-soname... " >&6; }
+ LDFLAGS="-Wl,-dynamic,-install_name -Wl,libbase.so.6.2.1 $LDFLAGS -shared"
+ { $as_echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-dynamic,-install_name" >&5
+$as_echo_n "checking whether compiler understands option -Wl,-dynamic,-install_name... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
- DEAL_II_LD_UNDERSTANDS_SONAME="yes"
+ DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME="yes"
else
$as_echo "$as_me: failed program was:" >&5
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
- DEAL_II_LD_UNDERSTANDS_SONAME="no"
+ DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME="no"
fi
LDFLAGS="$OLD_LDFLAGS"
- OLD_LDFLAGS="$LDFLAGS"
- LDFLAGS="-Wl,-dynamic,-install_name -Wl,libbase.so.6.2.1 $LDFLAGS -shared"
- { $as_echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-dynamic,-install_name" >&5
-$as_echo_n "checking whether compiler understands option -Wl,-dynamic,-install_name... " >&6; }
+fi
+
+ OLD_LDFLAGS="$LDFLAGS"
+ LDFLAGS="-Wl,-rpath,$DEAL_II_PATH/lib $LDFLAGS"
+ { $as_echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-rpath" >&5
+$as_echo_n "checking whether compiler understands option -Wl,-rpath... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
-
- { $as_echo "$as_me:$LINENO: result: yes" >&5
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
- DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME="yes"
-
+ LD_PATH_OPTION="-Wl,-rpath "
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-
- { $as_echo "$as_me:$LINENO: result: no" >&5
+ { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
- DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME="no"
-
-
+ LDFLAGS="$OLD_LDFLAGS"
+ LD_PATH_OPTION="no"
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
- LDFLAGS="$OLD_LDFLAGS"
-fi