77#  Copyright (c) 2013-2014 Intel, Inc.  All rights reserved.
88#  Copyright (c) 2015-2016 Research Organization for Information Science
99#                          and Technology (RIST). All rights reserved.
10- #  Copyright (c) 2015       IBM Corporation.  All rights reserved.
10+ #  Copyright (c) 2015-2016  IBM Corporation.  All rights reserved.
1111# 
1212#  $COPYRIGHT$
1313# 
4848my  $no_ompi_arg  = 0;
4949my  $no_orte_arg  = 0;
5050my  $no_oshmem_arg  = 0;
51+ my  $libmpi_name_arg  = " mpi"  ;
5152my  $quiet_arg  = 0;
5253my  $debug_arg  = 0;
5354my  $help_arg  = 0;
@@ -1080,6 +1081,7 @@ sub in_tarball {
10801081my  $ok  = Getopt::Long::GetOptions(" no-ompi"   =>  \$no_ompi_arg ,
10811082                                  " no-orte"   =>  \$no_orte_arg ,
10821083                                  " no-oshmem"   =>  \$no_oshmem_arg ,
1084+                                   " libmpi-name=s"   =>  \$libmpi_name_arg ,
10831085                                  " quiet|q"   =>  \$quiet_arg ,
10841086                                  " debug|d"   =>  \$debug_arg ,
10851087                                  " help|h"   =>  \$help_arg ,
@@ -1096,6 +1098,7 @@ sub in_tarball {
10961098  --no-ompi | -no-ompi          Do not build the Open MPI layer 
10971099  --no-orte | -no-orte          Do not build the ORTE layer 
10981100  --no-oshmem | -no-oshmem      Do not build the OSHMEM layer 
1101+   --libmpi-name | -libmpi-name  Override the default lib name of: lib$libmpi_name_arg  
10991102  --quiet | -q                  Do not display normal verbose output 
11001103  --debug | -d                  Output lots of debug information 
11011104  --help | -h                   This help list 
@@ -1324,6 +1327,11 @@ sub in_tarball {
13241327m4_define([project_name_long], [$project_name_long ]) 
13251328m4_define([project_name_short], [$project_name_short ])\n "  ;
13261329
1330+ if ( !$no_ompi_arg  ) {
1331+     $m4  .= " \n dnl Library prefix
1332+ m4_define([ompi_lib_prefix], [$libmpi_name_arg ])\n "  ;
1333+ }
1334+ 
13271335#  Setup MCA
13281336mca_run_global($projects );
13291337
0 commit comments