From cb82e136ddd853abeaef0c86965ad3d8751f7d7c Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sun, 23 Jan 2011 20:34:14 +0100 Subject: [PATCH] Help configure finding the rti libraries. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index d7f7a65a6..cd41238ff 100644 --- a/configure.ac +++ b/configure.ac @@ -271,9 +271,11 @@ if test "x$with_rti13" != "xno"; then if test "x$simgear_hla" = "xyes" ; then AC_MSG_CHECKING([for hla libraries]) saved_LIBS="$LIBS" + saved_LDFLAGS="$LDFLAGS" for rti13libs in "-lRTI-NG -lFedTime" "-lRTI-NGd -lFedTimed" ; do if test "x$hla_libs" = "x" ; then LIBS="-lsghla13 -lsghla -lsgxml -lsgstructure -lsgmath -lsgdebug -lsgtiming $rti13libs -lrt $saved_LIBS" + LDFLAGS="$HLA_LDFLAGS $saved_LDFLAGS" AC_TRY_LINK([ #include ],[ @@ -282,6 +284,7 @@ if test "x$with_rti13" != "xno"; then fi done LIBS="$saved_LIBS" + LDFLAGS="$saved_LDFLAGS" AC_MSG_RESULT($hla_libs) fi AC_LANG_POP()