DEPRECATED/ac_cxx_typename.m4 \
DEPRECATED/ac_cc_warnings.m4
-salomem4_DATA=\
+dist_salomem4_DATA=\
ac_cxx_depend_flag.m4 \
ac_cxx_have_sstream.m4 \
ac_cxx_namespaces.m4 \
dnl were is cppunit ?
AC_ARG_WITH(cppunit,
- [ --with-cppunit=DIR directory path to CPPUNIT installation ],
+ [AC_HELP_STRING([--with-cppunit=DIR],[directory path to CPPUNIT installation])],
[CPPUNITHOME="$withval"
AC_MSG_RESULT("select $withval as path to CPPUNIT")
])
AC_ARG_WITH(cppunit_inc,
- [ --with-cppunit_inc=DIR directory path to CPPUNIT includes ],
+ [AC_HELP_STRING([--with-cppunit_inc=DIR],[directory path to CPPUNIT includes])],
[CPPUNIT_INCLUDES="$withval"
AC_MSG_RESULT("select $withval as path to CPPUNIT includes")
])
AC_CHECKING(for HDF5)
AC_ARG_WITH(hdf5,
- [ --with-hdf5=DIR root directory path to hdf5 installation ],
+ [AC_HELP_STRING([--with-hdf5=DIR],[root directory path to hdf5 installation])],
[HDF5HOME="$withval"
AC_MSG_RESULT("select $withval as path to hdf5")
])
AC_REQUIRE([AC_PROG_CC])dnl
AC_ARG_WITH(lam,
- --with-lam=DIR root directory path of LAM installation,
- WITHLAM="yes",WITHLAM="no")
+ [AC_HELP_STRING([--with-lam=DIR],[root directory path of LAM installation])],
+ WITHLAM="yes",WITHLAM="no")
MPI_INCLUDES=""
MPI_LIBS=""
if test "$WITHLAM" = yes; then
+ MPIREQUESTED="yes"
echo
echo ---------------------------------------------
echo testing lam
AC_REQUIRE([AC_PROG_CC])dnl
AC_ARG_WITH(mpi,
- --with-mpi=DIR root directory path of MPICH installation,
- WITHMPI="yes",WITHMPI="no")
+ [AC_HELP_STRING([--with-mpi=DIR],[root directory path of MPICH installation])],
+ MPIREQUESTED="yes",MPIREQUESTED="no")
MPI_INCLUDES=""
MPI_LIBS=""
+WITHMPI=no
mpi_ok=no
-if test "$WITHMPI" = yes; then
+if test x"$MPIREQUESTED" = xyes; then
echo
echo ---------------------------------------------
fi
-if test "$WITHMPI2" = "yes";then
+if test x$WITHMPI2 = xyes; then
CPPFLAGS="-DHAVE_MPI2 $CPPFLAGS"
CORBA_IDLCXXFLAGS="-DHAVE_MPI2 $CORBA_IDLCXXFLAGS"
CORBA_IDLPYFLAGS="-DHAVE_MPI2 $CORBA_IDLPYFLAGS"
AC_REQUIRE([AC_PROG_CC])dnl
AC_ARG_WITH(mpich,
- --with-mpich=DIR root directory path of MPICH installation,
- WITHMPICH="yes",WITHMPICH="no")
+ [AC_HELP_STRING([--with-mpich=DIR],[root directory path of MPICH installation])],
+ WITHMPICH="yes",WITHMPICH="no")
MPI_INCLUDES=""
MPI_LIBS=""
if test "$WITHMPICH" = yes; then
+ MPIREQUESTED="yes"
echo
echo ---------------------------------------------
echo testing mpich
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_CPP])dnl
AC_ARG_WITH(opengl,
- [ --with-opengl=DIR root directory path of OpenGL installation ],
- [
- opengl_dir="$withval"
- local_opengl=yes
- ], [
- dirs="/usr/lib /usr/local/lib /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/X11R6/lib"
+ [AC_HELP_STRING([--with-opengl=DIR],[root directory path of OpenGL installation])],
+ [
+ opengl_dir="$withval"
+ local_opengl=yes
+ ], [
+ dirs="/usr/lib /usr/local/lib /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/X11R6/lib"
])dnl
AC_CHECKING(for OpenGL)
swig_ok=yes
AC_ARG_WITH(swig,
- [ --with-swig=EXEC swig executable ],
+ [AC_HELP_STRING([--with-swig=EXEC],[swig executable])],
[SWIG="$withval"
AC_MSG_RESULT("select $withval as swig executable")
], [
dnl
dnl@author (C) Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>, 1998, 2000
dnl@id $Id$
+dnl Modified to use acx_pthread.m4 from GNU Autoconf Macro Archive
dnl
-dnl
+
AC_DEFUN([ENABLE_PTHREADS],[
-AC_REQUIRE([CHECK_PTHREADS])
+AC_REQUIRE([ACX_PTHREAD])
-if test -z "$enable_pthreads_done"
-then
- CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
- CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
- LIBS="$LIBS $LIBS_PTHREADS"
+if test x"$acx_pthread_ok" = xyes; then
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
+ LIBS="$LIBS $PTHREAD_LIBS"
+ threads_ok=yes
+else
+ threads_ok=no
fi
enable_pthreads_done=yes
])dnl
AC_DEFUN([CHECK_PYTHON],
[
AC_ARG_WITH(python,
- [ --with-python=DIR root directory path of python installation ],
+ [AC_HELP_STRING([--with-python=DIR],[root directory path of python installation])],
[PYTHON="$withval/bin/python"
AC_MSG_RESULT("select python distribution in $withval")
], [
AC_SUBST(PYTHON_SITE)
AC_ARG_WITH(python-site,
-[ --with-python-site=DIR Use DIR for installing platform independent
- Python site-packages],
+ [AC_HELP_STRING([--with-python-site=DIR],
+ [Use DIR for installing platform independent Python site-packages])],
dnl modification : by default, we install python script in salome root tree
dnl [PYTHON_SITE="$withval"
dnl python_site_given=yes],
dnl [PYTHON_SITE=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
-dnl python_site_given=no])
+dnl python_site_given=no]
-[PYTHON_SITE="$withval"
-python_site_given=yes],
-[PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages
-python_site_given=no])
+ [PYTHON_SITE="$withval"
+ python_site_given=yes],
+ [PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages
+ python_site_given=no])
AC_SUBST(PYTHON_SITE_PACKAGE)
PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
AC_SUBST(PYTHON_SITE_EXEC)
AC_ARG_WITH(python-site-exec,
-[ --with-python-site-exec=DIR Use DIR for installing platform dependent
- Python site-packages],
-[PYTHON_SITE_EXEC="$withval"],
-[if test "$python_site_given" = yes; then
- PYTHON_SITE_EXEC=$PYTHON_SITE
-else
- PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
-fi])
+ [AC_HELP_STRING([--with-python-site-exec=DIR],
+ [Use DIR for installing platform dependent Python site-packages])],
+ [PYTHON_SITE_EXEC="$withval"],
+ [if test "$python_site_given" = yes; then
+ PYTHON_SITE_EXEC=$PYTHON_SITE
+ else
+ PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
+ fi])
dnl Set up the install directory
ifelse($1, classes,