]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Wed, 22 Sep 2004 12:57:59 +0000 (12:57 +0000)
committerageay <ageay>
Wed, 22 Sep 2004 12:57:59 +0000 (12:57 +0000)
salome_adm/unix/config_files/check_omniorb.m4

index e5a98efe3a2c68054d940e0672cb4154e1ffda0b..1cd4d763d60f49c19626b038a02838816dc16e53 100644 (file)
@@ -239,7 +239,7 @@ dnl AC_LANG_CPLUSPLUS
 CXXFLAGS_old=$CXXFLAGS
 CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
 LIBS_old=$LIBS
-LIBS="$LIBS $OMNIORB_LDFLAGS -lomnithread"
+LIBS="$LIBS $OMNIORB_LDFLAGS $OMNIORB_LIBS"
 AC_MSG_CHECKING(whether we have double and CORBA::Double compatibility)
 AC_TRY_RUN(
 #include <stdlib.h>
@@ -251,10 +251,14 @@ int main ()
   double *b;
   b=(double *)a;
 
-  if( (c==*b) && (sizeof(double)==sizeof(CORBA::Double)) )
+  if( (c==*b) && (sizeof(double)==sizeof(CORBA::Double)) ){
+    delete a;
     exit(0);
-  else
+  }
+  else{
+    delete a;
     exit(1);
+  }
 }
 ,DOUBLECOMP="yes",DOUBLECOMP="no")
 if test "$DOUBLECOMP" = yes; then