1
0
Fork 0

Help configure finding the rti libraries.

This commit is contained in:
Mathias Froehlich 2011-01-23 20:34:14 +01:00
parent 5268b3c6ed
commit cb82e136dd

View file

@ -271,9 +271,11 @@ if test "x$with_rti13" != "xno"; then
if test "x$simgear_hla" = "xyes" ; then if test "x$simgear_hla" = "xyes" ; then
AC_MSG_CHECKING([for hla libraries]) AC_MSG_CHECKING([for hla libraries])
saved_LIBS="$LIBS" saved_LIBS="$LIBS"
saved_LDFLAGS="$LDFLAGS"
for rti13libs in "-lRTI-NG -lFedTime" "-lRTI-NGd -lFedTimed" ; do for rti13libs in "-lRTI-NG -lFedTime" "-lRTI-NGd -lFedTimed" ; do
if test "x$hla_libs" = "x" ; then if test "x$hla_libs" = "x" ; then
LIBS="-lsghla13 -lsghla -lsgxml -lsgstructure -lsgmath -lsgdebug -lsgtiming $rti13libs -lrt $saved_LIBS" LIBS="-lsghla13 -lsghla -lsgxml -lsgstructure -lsgmath -lsgdebug -lsgtiming $rti13libs -lrt $saved_LIBS"
LDFLAGS="$HLA_LDFLAGS $saved_LDFLAGS"
AC_TRY_LINK([ AC_TRY_LINK([
#include <simgear/hla/HLA13Federate.hxx> #include <simgear/hla/HLA13Federate.hxx>
],[ ],[
@ -282,6 +284,7 @@ if test "x$with_rti13" != "xno"; then
fi fi
done done
LIBS="$saved_LIBS" LIBS="$saved_LIBS"
LDFLAGS="$saved_LDFLAGS"
AC_MSG_RESULT($hla_libs) AC_MSG_RESULT($hla_libs)
fi fi
AC_LANG_POP() AC_LANG_POP()