#macomm2=['ddd']
#pid = os.spawnvp(os.P_NOWAIT, macomm2[0], macomm2)
#
- # Attente de la disponibilité du Session Server dans le Naming Service
+ # Attente de la disponibilite du Session Server dans le Naming Service
#
import SALOME
AC_MSG_WARN(undefined HDF5HOME variable which specify hdf5 installation directory)
else
LOCAL_INCLUDES="-I$HDF5HOME/include"
- LOCAL_LIBS="-L$HDF5HOME/lib"
+ if test "x$HDF5HOME" = "x/usr"
+ then
+ LOCAL_LIBS=""
+ else
+ LOCAL_LIBS="-L$HDF5HOME/lib"
+ fi
fi
dnl hdf5 headers
if test "$LAM_HOME"; then
MPI_INCLUDES="-I$LAM_HOME/include"
- MPI_LIBS="-L$LAM_HOME/lib"
+ if test "x$LAM_HOME" = "x/usr"
+ then
+ MPI_LIBS=""
+ else
+ MPI_LIBS="-L$LAM_HOME/lib"
+ fi
fi
CPPFLAGS_old="$CPPFLAGS"
dnl LIB directory
- LSF_LDFLAGS="-L${LSF_LIBDIR}"
+ if test "x${LSF_LIBDIR}" = "x/usr/lib"
+ then
+ LSF_LDFLAGS=""
+ else
+ LSF_LDFLAGS="-L${LSF_LIBDIR}"
+ fi
LSF_LIBS=""
saved_LDFLAGS=${LDFLAGS}
saved_LIBS=${LIBS}
if test ! -z $MED2HOME
then
LOCAL_INCLUDES="$LOCAL_INCLUDES -I$MED2HOME/include"
- LOCAL_LIBS="-L$MED2HOME/lib $LOCAL_LIBS"
+ if test "x$MED2HOME" = "x/usr"
+ then
+ LOCAL_LIBS="-lmed $LOCAL_LIBS"
+ else
+ LOCAL_LIBS="-L$MED2HOME/lib $LOCAL_LIBS"
+ fi
fi
dnl check med2 header
if test "x$mico_ok" = "xyes"
then
- MICO_LDFLAGS="-L$MICO_LIB"
+ if test "x$MICO_LIB" = "x/usr/lib"
+ then
+ MICO_LDFLAGS=""
+ else
+ MICO_LDFLAGS="-L$MICO_LIB"
+ fi
LIBS_old=$LIBS
MICO_LIBS="$MICO_LDFLAGS -lmico$MICO_VERSION -ldl"
if test "x$withval" != "xyes"; then
MPI_HOME=$withval
MPI_INCLUDES="-I$MPI_HOME/include"
- MPI_LIBS="-L$MPI_HOME/lib"
+ if test "x$MPI_HOME" = "x/usr"
+ then
+ MPI_LIBS=""
+ else
+ MPI_LIBS="-L$MPI_HOME/lib"
+ fi
fi
CPPFLAGS_old="$CPPFLAGS"
if test "$MPICH_HOME"; then
MPI_INCLUDES="-I$MPICH_HOME/include"
- MPI_LIBS="-L$MPICH_HOME/lib"
+ if test "x$MPICH_HOME" = "x/usr"
+ then
+ MPI_LIBS=""
+ else
+ MPI_LIBS="-L$MPICH_HOME/lib"
+ fi
fi
CPPFLAGS_old="$CPPFLAGS"
if test "x$omniORB_ok" = "xyes"
then
- OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
+ if test "x$OMNIORB_LIB" = "x/usr/lib"
+ then
+ OMNIORB_LDFLAGS=""
+ else
+ OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
+ fi
LIBS_old=$LIBS
LIBS="$LIBS $OMNIORB_LDFLAGS -lomnithread"
if test -f "${opengl_dir}/include/GL/gl.h" ; then
OpenGL_ok=yes
OGL_INCLUDES="-I${opengl_dir}/include"
- OGL_LIBS="-L${opengl_dir}/lib"
+ if test "x${opengl_dir}" = "x/usr"
+ then
+ OGL_LIBS=""
+ else
+ OGL_LIBS="-L${opengl_dir}/lib"
+ fi
AC_MSG_RESULT(select OpenGL distribution in ${opengl_dir})
else
AC_MSG_RESULT(no gl.h header file in ${opengl_dir}/include/GL)
for i in $dirs; do
if test -r "$i/libGL.so"; then
dnl AC_MSG_RESULT(in $i)
- OGL_LIBS="-L$i"
+ if test "x$i" = "x/usr/lib"
+ then
+ OGL_LIBS=""
+ else
+ OGL_LIBS="-L$i"
+ fi
break
fi
# under IRIX ?
if test -r "$i/libGL.sl"; then
dnl AC_MSG_RESULT(in $i)
- OGL_LIBS="-L$i"
+ if test "x$i" = "x/usr/lib"
+ then
+ OGL_LIBS=""
+ else
+ OGL_LIBS="-L$i"
+ fi
break
fi
done
CPPFLAGS=${saved_CPPFLAGS}
AC_SUBST(OPENPBS_INCLUDES)
- OPENPBS_LIBDIR="-L${OPENPBS}/lib"
+ if test "x${OPENPBS}" = "x/usr"
+ then
+ OPENPBS_LIBDIR=""
+ else
+ OPENPBS_LIBDIR="-L${OPENPBS}/lib"
+ fi
OPENPBS_LIBS="-lpbs"
saved_LDFLAGS=${LDFLAGS}
saved_LIBS=${LIBS}
dnl try {PYQTDIR}
AC_CHECK_FILE(${PYQTDIR}/libqtcmodule.so,pyqt_lib_ok=yes,pyqt_lib_ok=no)
if test "x$pyqt_lib_ok" == "xyes"; then
- PYQT_LIBS="-L${PYQTDIR} -lqtcmodule"
+ if test "x${PYQTDIR}" = "x/usr/lib"
+ then
+ PYQT_LIBS="-lqtcmodule"
+ else
+ PYQT_LIBS="-L${PYQTDIR} -lqtcmodule"
+ fi
else
AC_CHECK_FILE(${PYQTDIR}/qt.so,pyqt_lib_ok=yes,pyqt_lib_ok=no)
if test "x$pyqt_lib_ok" == "xyes"; then
- PYQT_LIBS="-L${PYQTDIR}"
+ if test "x${PYQTDIR}" = "x/usr/lib"
+ then
+ PYQT_LIBS=""
+ else
+ PYQT_LIBS="-L${PYQTDIR}"
+ fi
fi
fi
if test "x$pyqt_lib_ok" == "xno"; then
if test -d ${SIPDIR} ; then
AC_CHECK_FILE(${SIPDIR}/libqtcmodule.so,pyqt_lib_ok=yes,pyqt_lib_ok=no)
if test "x$pyqt_lib_ok" == "xyes"; then
- PYQT_LIBS="-L${SIPDIR} -lqtcmodule"
+ if test "x${SIPDIR}" = "x/usr/lib"
+ then
+ PYQT_LIBS="-lqtcmodule"
+ else
+ PYQT_LIBS="-L${SIPDIR} -lqtcmodule"
+ fi
else
AC_CHECK_FILE(${SIPDIR}/qt.so,pyqt_lib_ok=yes,pyqt_lib_ok=no)
if test "x$pyqt_lib_ok" == "xyes"; then
- PYQT_LIBS="-L${SIPDIR}"
+ if test "x${SIPDIR}" = "x/usr/lib"
+ then
+ PYQT_LIBS=""
+ else
+ PYQT_LIBS="-L${SIPDIR}"
+ fi
fi
fi
fi
qt_ok=no
else
AC_MSG_RESULT(QTDIR is $QTDIR)
- QT_VERS=`grep "QT_VERSION_STR" ${QTDIR}/include/qglobal.h | sed -e 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'`
+ qt_inc_ok=no
+ QTINC=""
+ AC_CHECK_FILE(${QTDIR}/include/qt3/qglobal.h,QTINC="/qt3",QTINC="")
+ QT_VERS=`grep "QT_VERSION_STR" ${QTDIR}/include${QTINC}/qglobal.h | sed -e 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'`
AC_MSG_RESULT(Qt version is $QT_VERS)
QT_VERS="Qt_"`echo $QT_VERS | sed -e 's%\"%%g' -e 's%\.%_%g'`
fi
if test "x$qt_ok" = "xyes"
then
CPPFLAGS_old=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
+ CPPFLAGS="$CPPFLAGS -I$QTDIR/include${QTINC}"
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER(qaction.h,qt_ok=yes ,qt_ok=no)
AC_MSG_RESULT(QTDIR environment variable may be wrong)
else
AC_MSG_RESULT(yes)
- QT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
- QT_MT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
+ QT_INCLUDES="-I${QT_ROOT}/include${QTINC} -DQT_THREAD_SUPPORT"
+ QT_MT_INCLUDES="-I${QT_ROOT}/include${QTINC} -DQT_THREAD_SUPPORT"
fi
fi
then
AC_MSG_CHECKING(linking qt library)
LIBS_old=$LIBS
- LIBS="$LIBS -L$QTDIR/lib -lqt-mt $OGL_LIBS"
+ if test "x$QTDIR" = "x/usr"
+ then
+ LIBS="$LIBS -lqt-mt $OGL_LIBS"
+ else
+ LIBS="$LIBS -L$QTDIR/lib -lqt-mt $OGL_LIBS"
+ fi
CXXFLAGS_old=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS -I$QTDIR/include"
+ CXXFLAGS="$CXXFLAGS $QT_INCLUDES"
AC_CACHE_VAL(salome_cv_lib_qt,[
AC_TRY_LINK(
AC_MSG_RESULT(QTDIR environment variable may be wrong)
else
AC_MSG_RESULT(yes)
- QT_LIBS="-L$QTDIR/lib -lqt-mt"
- QT_MT_LIBS="-L$QTDIR/lib -lqt-mt"
+ if test "x$QTDIR" = "x/usr"
+ then
+ QT_LIBS=" -lqt-mt"
+ QT_MT_LIBS=" -lqt-mt"
+ else
+ QT_LIBS="-L$QTDIR/lib -lqt-mt"
+ QT_MT_LIBS="-L$QTDIR/lib -lqt-mt"
+ fi
fi
LIBS=$LIBS_old
AC_LANG_CPLUSPLUS
CPPFLAGS_old=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$QWT_INCLUDES"
- CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
+ CPPFLAGS="$CPPFLAGS $QT_INCLUDES"
AC_CHECK_HEADER(qwt.h,qwt_ok=yes,qwt_ok=no)
then
AC_MSG_CHECKING(linking qwt library)
LIBS_old=$LIBS
- LIBS="$LIBS -L$QTDIR/lib -lqt-mt -L$QWTHOME/lib -lqwt"
+ if test "x$QTDIR" = "x/usr"
+ then
+ LIBS="$LIBS -lqt-mt"
+ else
+ LIBS="$LIBS -L$QTDIR/lib -lqt-mt"
+ fi
+ if test "x$QWTHOME" = "x/usr/lib"
+ then
+ LIBS="$LIBS -lqwt"
+ else
+ LIBS="$LIBS -L$QWTHOME/lib -lqwt"
+ fi
CXXFLAGS_old=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS -I$QTDIR/include -I$QWT_INCLUDES"
+ CXXFLAGS="$CXXFLAGS $QT_INCLUDES -I$QWT_INCLUDES"
AC_CACHE_VAL(salome_cv_lib_qwt,[
AC_TRY_LINK(
AC_MSG_RESULT(QWTHOME environment variable may be wrong)
else
QWT_INCLUDES="-I$QWT_INCLUDES"
- QWT_LIBS="-L$QWTHOME/lib -lqwt"
+ if test "x$QWTHOME" = "x/usr/lib"
+ then
+ QWT_LIBS=" -lqwt"
+ else
+ QWT_LIBS="-L$QWTHOME/lib -lqwt"
+ fi
AC_SUBST(QWT_INCLUDES)
AC_SUBST(QWT_LIBS)
dnl look for (lib)sip.so in ${SIPDIR}
AC_CHECK_FILE(${SIPDIR}/libsip.so,sip_lib_ok=yes,sip_lib_ok=no)
if test "x$sip_lib_ok" == "xyes" ; then
- SIP_LIBS="-L${SIPDIR} -lsip"
+ if test "x${SIPDIR}" = "x/usr/lib"
+ then
+ SIP_LIBS="-lsip"
+ else
+ SIP_LIBS="-L${SIPDIR} -lsip"
+ fi
else
AC_CHECK_FILE(${SIPDIR}/sip.so,sip_lib_ok=yes,sip_lib_ok=no)
if test "x$sip_lib_ok" == "xyes" ; then
- SIP_LIBS="-L${SIPDIR}"
+ if test "x${SIPDIR}" = "x/usr/lib"
+ then
+ SIP_LIBS=""
+ else
+ SIP_LIBS="-L${SIPDIR}"
+ fi
fi
fi
LXLIB=""
fi
+if test "x$x_libraries" = "x/usr/lib"
+then
+ LXLIB=""
+fi
+
+if test "x$x_libraries" = "x/usr/lib"
+then
+ LXLIB=""
+fi
+
+if test "x$x_libraries" = "x/usr/lib"
+then
+ LXLIB=""
+fi
+
LOCAL_INCLUDES="$OGL_INCLUDES"
LOCAL_LIBS="-lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid $OGL_LIBS $LXLIB -lX11 -lXt"
TRY_LINK_LIBS="-lvtkCommon $OGL_LIBS $LXLIB -lX11 -lXt"
CPPFLAGS+= $(QT_MT_INCLUDES)
CXXFLAGS+=
LDFLAGS+= $(QT_MT_LIBS) $(OGL_LIBS) -lSalomeNS -lOpUtil -lSALOMELocalTrace -lSALOMETraceCollector
-
+LDFLAGSFORBIN+= -lSalomeNS -lOpUtil -lSALOMELocalTrace -lSALOMETraceCollector
@CONCLUDE@
CPPFLAGS+= $(QT_MT_INCLUDES)
LDFLAGS+= $(QT_MT_LIBS) -lSalomeNS -lSALOMELocalTrace -lSALOMETraceCollector -lOpUtil
+LDFLAGSFORBIN+= -lSalomeNS -lSALOMELocalTrace -lSALOMETraceCollector -lOpUtil
+
@CONCLUDE@
CPPFLAGS+= $(QT_MT_INCLUDES)
CXXFLAGS+=
LDFLAGS+= $(QT_MT_LIBS) $(OGL_LIBS) -lSalomeNS -lOpUtil -lSALOMELocalTrace -lSALOMETraceCollector
+LDFLAGSFORBIN+= -lSalomeNS -lOpUtil -lSALOMELocalTrace -lSALOMETraceCollector
@CONCLUDE@
SALOMEDS_AttributeTextHighlightColor.cxx \
SALOMEDS_AttributeTreeNode.cxx \
SALOMEDS_AttributeUserID.cxx
-
+
# Executables targets
BIN = SALOMEDS_Server SALOMEDS_Client
#
LDXMUFLAGS= -L/usr/X11R6/lib -lXmu
LDFLAGS+=$(LDXMUFLAGS)
-LDFLAGSFORBIN= $(LDFLAGS) -lRegistry -lSalomeNotification -lSALOMETraceCollector
+LDFLAGSFORBIN= $(LDFLAGS) -lRegistry -lSalomeNotification -lSALOMETraceCollector -lSalomeContainer -lSalomeResourcesManager
@CONCLUDE@
SALOMEDSImpl_StudyBuilder.cxx \
SALOMEDSImpl_Study.cxx \
SALOMEDSImpl_StudyManager.cxx
-
+
CPPFLAGS+=$(OCC_INCLUDES) $(HDF5_INCLUDES)
#
LDXMUFLAGS= -L/usr/X11R6/lib -lXmu
LDFLAGS+=$(LDXMUFLAGS)
-
+LDFLAGSFORBIN=$(LDFLAGS) -lSalomeHDFPersist
@CONCLUDE@
BIN_SRC =
LDFLAGS+= -lSalomeNotification -lSalomeNS -lSalomeContainer -lRegistry -lOpUtil -lSALOMELocalTrace -lSalomeResourcesManager
-LDFLAGSFORBIN= $(LDFLAGS) -lSALOMETraceCollector
+LDFLAGSFORBIN+= -lSalomeNotification -lSalomeNS -lSalomeContainer -lRegistry -lOpUtil -lSALOMELocalTrace -lSALOMETraceCollector -lSalomeResourcesManager
@CONCLUDE@