[Ocfs2-test-devel] [PATCH 05/11] ocfs2-test: Changed configure.in to built ocfs2-test RPM.

tristan.ye tristan.ye at oracle.com
Thu Oct 30 19:36:58 PDT 2008


On Thu, 2008-10-30 at 12:32 -0700, Marcos Matsunaga wrote:
> Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
> ---
>  configure.in |    7 +++++--
>  1 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.in b/configure.in
> index 72a8e22..4249947 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -6,11 +6,13 @@ PACKAGE=ocfs2-test
>  
>  AC_SUBST(PACKAGE)
>  
> +MPICC=`rpm -qil openmpi-devel|grep mpicc|grep bin`
did you wanna get a mpicc bin here? we may use 
MPICC=`which mpicc` in case the openmpi is installed by tarball,
if openmpi was installed by tarball,the mpicc should be
/usr/local/bin/mpicc
if openmpi was installed by rpm,its binary patch should be found out by
such 'rpm -qil openmpi|grep bin|...',then add to PATH env manually.

so by this way,we always get the mpicc path regardless of its
installation methods:)

> +INSTALLDIR=/usr/local
>  # Adjust these for the software version.
> -MAJOR_VERSION=0
> +MAJOR_VERSION=1
>  MINOR_VERSION=0
>  MICRO_VERSION=1
> -EXTRA_VERSION=
> +EXTRA_VERSION=0
>  
>  # Adjust this only to bump the RPM packaging version
>  RPM_VERSION=1
> @@ -119,6 +121,7 @@ AM_PATH_PYTHON(2.3, , AC_MSG_ERROR([could not find Python 2.3 or higher.]))
>  
>  AC_CONFIG_FILES([
>  Config.make
> +vendor/common/ocfs2-test.spec-generic
>  ])
>  
>  AC_OUTPUT




More information about the Ocfs2-test-devel mailing list