Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #66 from tango-controls/default-to-usr-for-omni-ch…
Browse files Browse the repository at this point in the history
…ecks

Default to usr for omni checks
  • Loading branch information
t-b authored Jan 13, 2020
2 parents 4239594 + 4ebc907 commit 03e2bd2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions assets/m4/RSSH_CHECK_OMNINOTIFY.m4
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ AC_REQUIRE([RSSH_CHECK_OMNIORB])dnl
AC_ARG_WITH(omninotify, AC_HELP_STRING([--with-omniNotify],[prefix to omniNotify installation (default: $OMNI_ROOT)]) ,\
OMNINOTIFY_PREFIX=${with_omninotify} , OMNINOTIFY_PREFIX=/usr/local )
OMNINOTIFY_PREFIX=${with_omninotify} , OMNINOTIFY_PREFIX=/usr )
if test "x$OMNI_ROOT" = "x"
then
if test "x$OMNINOTIFY_PREFIX" = "x"
then
OMNI_ROOT="/usr/local"
OMNI_ROOT="/usr"
else
OMNI_ROOT="$OMNINOTIFY_PREFIX"
fi
fi
if test "x$OMNINOTIFY_PREFIX" = "xno"
then
dnl OMNINOTIFY NOT SET
dnl OMNINOTIFY NOT SET
AC_MSG_RESULT(omniNotify is disabled)
omninotify=no
else
Expand Down Expand Up @@ -81,14 +81,14 @@ CXXCPPFLAGS="$CXXCPPFLAGS $IDLCXXFLAGS"
AC_CHECK_HEADER( omniNotify/omniNotify.h, omninotify=yes , omninotify=no, )
if test "x$omninotify" = "xyes"
if test "x$omninotify" = "xyes"
then
OMNI_LIBDIR="$OMNI_ROOT/lib"
if test ! -r "$ORB_LIBDIR/libCOSNotify4.so"
then
for i in $OMNI_ROOT/lib/*/lib*.so
do
OMNI_LIBDIR=`dirname $i`
OMNI_LIBDIR=`dirname $i`
break;
done
fi
Expand Down
28 changes: 14 additions & 14 deletions assets/m4/RSSH_CHECK_OMNIORB.m4
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dnl@synposis RSSH_CHECK_CORBA_ORB
dnl@synposis RSSH_CHECK_CORBA_ORB
dnl
dnl set CORBA support for omniORB v3-pr2 or highter
dnl ( http://www.uk.research.att.com/omniORB/omniORB.html)
Expand All @@ -14,21 +14,21 @@ AC_REQUIRE([AC_PROG_CXXCPP])
AC_ARG_WITH(omni, AC_HELP_STRING([--with-omni],[prefix to omniORB installation (default: $OMNI_ROOT)]) ,\
OMNI_PREFIX=${with_omni} , OMNI_PREFIX=/usr/local )
OMNI_PREFIX=${with_omni} , OMNI_PREFIX=/usr )
if test "x$OMNI_ROOT" = "x"
then
if test "x$OMNI_PREFIX" = "x"
then
OMNI_ROOT="/usr/local"
OMNI_ROOT="/usr"
else
OMNI_ROOT="$OMNI_PREFIX"
fi
fi
if test "x$OMNI_PREFIX" = "xno"
then
dnl OMNI NOT SET
dnl OMNI NOT SET
AC_MSG_RESULT(omniORB is disabled)
omni=no
else
Expand Down Expand Up @@ -66,7 +66,7 @@ case $build_os in
AC_DEFINE(__darwin__,1,If we're running on darwin/MacOsX)
IDLCXXFLAGS="$IDLCXXFLAGS -D__darwin__"
SL_SUFFIX=dylib
;;
;;
solaris*)
AC_DEFINE(__sunos__,1,If we're running on solaris)
IDLCXXFLAGS="$IDLCXXFLAGS -D__sunos__"
Expand Down Expand Up @@ -94,14 +94,14 @@ CXXCPPFLAGS="$CXXCPPFLAGS $IDLCXXFLAGS"
AC_CHECK_HEADER( omniORB4/CORBA.h, omni=yes , omni=no, )
if test "x$omni" = "xyes"
if test "x$omni" = "xyes"
then
ORB_LIBDIR="$OMNI_ROOT/lib"
if test ! -r "$ORB_LIBDIR/libomniORB4.$SL_SUFFIX"
then
for i in $OMNI_ROOT/lib/*/lib*.$SL_SUFFIX
do
ORB_LIBDIR=`dirname $i`
ORB_LIBDIR=`dirname $i`
break;
done
fi
Expand Down Expand Up @@ -197,7 +197,7 @@ then
ORB=unknown
omni=no
eval "$rssh_rollback"
rssh_rollback=$svRSSH_ROLLBACK
rssh_rollback=$svRSSH_ROLLBACK
else
AC_SUBST(CORBA_INCLUDES)
Expand All @@ -219,7 +219,7 @@ else
IDL=$i
break
fi
done
done
fi
AC_SUBST(IDL)
IDLCXX=$IDL
Expand Down Expand Up @@ -251,8 +251,8 @@ else
AC_SUBST(IDL_CLN_CPP_SUFFIX,$IDL_CLN_CPP_SUFFIX)
AC_DEFINE_UNQUOTED(IDL_CLN_CPP_SUFFIX,$IDL_CLN_CPP,1,"")
IDL_CLN_O=SK.o
IDL_CLN_OBJ_SUFFIX=SK.o
IDL_CLN_O=SK.o
IDL_CLN_OBJ_SUFFIX=SK.o
AC_SUBST(IDL_CLN_O,$IDL_CLN_O)
AC_SUBST(IDL_CLN_OBJ_SUFFIX,$IDL_CLN_OBJ_SUFFIX)
Expand Down Expand Up @@ -288,7 +288,7 @@ else
COSNAMING_H='omniORB4/Naming.hh'
AC_DEFINE_UNQUOTED(COSNAMING_H,<$COSNAMING_H>, "")
ORB_COSNAMING_LIB=
ORB_COSNAMING_LIB=
AC_SUBST(ORB_COSNAMING_LIB)
dnl i. e. it's build into ORB lib
Expand All @@ -310,13 +310,13 @@ return 0;
], rssh_cv_corba_namespaces=yes, rssh_cv_corba_namespaces=no)
)
if test "$rssh_cv_corba_namespaces" = "yes"
if test "$rssh_cv_corba_namespaces" = "yes"
then
AC_DEFINE(CORBA_MODULE_NAMESPACE_MAPPING,1, "")
else
AC_DEFINE(CORBA_MODULE_CLASS_MAPPING,1,"")
fi
AC_DEFINE(OMNIORB,1,"if we're working with omniorb")
CORBA_HAVE_POA=1
Expand Down

0 comments on commit 03e2bd2

Please sign in to comment.