1
1
openmpi/config
Jeff Squyres 36679de8d8 Fixes trac:1045.
libsysfs headers are required for libibverbs v1.0 (i.e., OFED 1.0 and
OFED 1.1), meaning that <infiniband/verbs.h> would #include
<sysfs/libsysfs.h>.  Hence, if the libsysfs headers did not exist on a
system, including <verbs.h> would fail.  

With older versions of Autoconf, we would simply test for the
''presence'' of the <infinband/verbs.h> and not actually try to
''use'' it.  This could leave OMPI in a weird situation on systems
that did not have the sysfs headers installed: configure would
complete successfully, but the build of the openib btl would fail.
Some users complained, thinking that there was a real compile error in
the OMPI code base.

Hence, we decided that it would be better to AC_CHECK_HEADER for the
sysfs header files in configure.  If the sysfs header files were not
found, configure would abort.  Users generally understand when
configure aborts, and know how to read the output and fix the
underlying problem; it was ''much'' more obvious than having the OMPI
build fail for nebulous reasons much later.

Note that we also checked for / added -lsysfs, but that wasn't
necessary because libibverbs already run-time linked to it (i.e.,
libibverbs couldn't have been installed if the sysfs libraries weren't
installed).

However, there are now two reasons why the check for sysfs's header
files is no longer necessary:

 * Newer versions of Autoconf are now used for OMPI tarballs that
   check for both the presence '''and''' usability of header files.
   Hence, AC_CHECK_HEADER for <infiniband/verbs.h> will actually try
   to ''use'' it, so if the sysfs header files are not installed,
   AC_CHECK_HEADER will (rightfully) fail.
 * libibverbs v1.1 (i.e., OFED 1.2 and beyond) does not require
   libsysfs at all (headers or libraries).  

When checking for the sysfs header files, OMPI's configure ''forces''
you to have sysfs installed, even though it may not be needed (e.g.,
libibverbs v1.1 and beyond).  Clearly, this is not good (especially
since the sysfs software package is now deprecated, and some Linux
distros no longer install it by default).

So this commit simply removes the check for the sysfs header files and
libraries, allowing OMPI to be build on systems with libibverbs >=1.1 that
do not have sysfs installed.

For systems with libibverbs 1.0, if they do not have the sysfs headers
installed, we'll still fail AC_CHECK_HEADER and therefore still fail
configure properly.  I expanded the warning message to say that if
libibverbs 1.0 is being used, check to ensure that sysfs is installed,
yadda yadda yadda.

This commit was SVN r14971.

The following Trac tickets were found above:
  Ticket 1045 --> https://svn.open-mpi.org/trac/ompi/ticket/1045
2007-06-08 23:34:05 +00:00
..
c_get_alignment.m4 Fix a number of places where we can cause errors in configure if CFLAGS / 2006-09-22 23:58:23 +00:00
c_weak_symbols.m4 - Allow detection of weak symbols support with Intel compiler 2007-05-30 13:01:36 +00:00
cxx_find_exception_flags.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
cxx_find_template_parameters.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
cxx_find_template_repository.m4 Fix typo in r14829. Thanks to Bert Wesarg for pointing out my dumbness :). 2007-06-05 01:47:48 +00:00
cxx_have_exceptions.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
distscript.csh Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
f77_check_logical_array.m4 * have to use same case for creating a function name as using it in the 2006-03-24 02:34:13 +00:00
f77_check_type.m4 Bring the f90 configuration up to speed with the f77 configuration 2006-02-12 15:11:36 +00:00
f77_check.m4 Bring the f90 configuration up to speed with the f77 configuration 2006-02-12 15:11:36 +00:00
f77_find_ext_symbol_convention.m4 Use the AC_PROG_GREP available in AC 2.60 and later. This works around 2007-06-01 02:31:15 +00:00
f77_get_alignment.m4 * have to use same case for creating a function name as using it in the 2006-03-24 02:34:13 +00:00
f77_get_fortran_handle_max.m4 Convert all Fortran 77 tests to use config cache so that we have a way to 2006-01-13 04:08:40 +00:00
f77_get_sizeof.m4 * add some debugging if conftestval the file doesn't exist 2006-03-28 13:55:39 +00:00
f77_get_value_true.m4 - Get the TRUE value detection working in case of 2007-05-31 13:03:04 +00:00
f77_purge_unsupported_kind.m4 * Fix issue when a type existed but we didn't have a corresponding C type - 2006-01-13 14:51:20 +00:00
f90_check_type.m4 Bring the f90 configuration up to speed with the f77 configuration 2006-02-12 15:11:36 +00:00
f90_check.m4 - Minor bugfixes and removed compiler warnings 2007-01-28 19:52:09 +00:00
f90_find_module_include_flag.m4 * skip some F90 tests if we aren't compilng F90 2006-02-12 16:59:56 +00:00
f90_get_int_kind.m4 * skip some F90 tests if we aren't compilng F90 2006-02-12 16:59:56 +00:00
f90_get_precision.m4 Bring the f90 configuration up to speed with the f77 configuration 2006-02-12 15:11:36 +00:00
f90_get_range.m4 Bring the f90 configuration up to speed with the f77 configuration 2006-02-12 15:11:36 +00:00
f90_get_sizeof.m4 * have to use same case for creating a function name as using it in the 2006-03-24 02:34:13 +00:00
libltdl_dlopen_global.diff Fix for LT 2.1 libltdl lt_dlopen behavior of putting loaded DSO's in a 2007-03-05 17:21:42 +00:00
lt21a-pathCC.diff Fixes trac:982. 2007-04-21 00:56:47 +00:00
lt1522-pathCC.diff Fixes trac:982. 2007-04-21 00:56:47 +00:00
ltmain_otool.diff Work around a bug involving dependent libraries when building 64 bit on Mac OS X 2007-01-22 20:31:04 +00:00
Makefile.am Back out 13076 and 13077 in favor of a much simpler approach. 2007-01-11 14:07:15 +00:00
Makefile.options Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
mca_acinclude.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
mca_configure.ac Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
mca_make_configure.pl Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
ompi_case_sensitive_fs_setup.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
ompi_check_attributes.m4 Use the AC_PROG_GREP available in AC 2.60 and later. This works around 2007-06-01 02:31:15 +00:00
ompi_check_bproc.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
ompi_check_broken_qsort.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
ompi_check_compiler_works.m4 Configure changes... woopie... 2006-11-30 01:59:44 +00:00
ompi_check_func_lib.m4 * Make the backtrace printing functionality a framework 2006-07-27 02:56:02 +00:00
ompi_check_gm.m4 * Fix for bug #152. Make --with-FOO-libdir=DIR only check DIR, and not the 2006-06-28 03:33:30 +00:00
ompi_check_icc.m4 Fix a number of places where we can cause errors in configure if CFLAGS / 2006-09-22 23:58:23 +00:00
ompi_check_loadleveler.m4 Fix a minor problem in variable naming in these configure macros. 2006-10-19 23:35:14 +00:00
ompi_check_mvapi.m4 Clean up a couple of issues with some of the configure tests: 2007-05-01 04:40:31 +00:00
ompi_check_mx.m4 The updated m4 file for detecting MX extensions. They are used to retrieve 2007-06-07 00:44:47 +00:00
ompi_check_openib.m4 Fixes trac:1045. 2007-06-08 23:34:05 +00:00
ompi_check_optflags.m4 - Get --coverage to work with new gcov and cleanup the generated files. 2007-01-19 14:28:52 +00:00
ompi_check_package.m4 Fix two errors with r14552: 2007-05-08 02:24:27 +00:00
ompi_check_portals.m4 * Add new PML (CM) and network drivers (MTL) for high speed 2006-07-04 01:20:20 +00:00
ompi_check_ps.m4 Update to orte-clean so it will remove files on local and 2007-02-03 00:25:42 +00:00
ompi_check_psm.m4 Initial commit of QLogic PSM MTL. 2006-09-14 16:44:02 +00:00
ompi_check_pthread_pids.m4 fix some misuses of various environment variables when running pthread checks 2007-02-24 21:22:55 +00:00
ompi_check_slurm.m4 * Only enable SLURM support in ORTE if on a platform currently supported by 2006-03-12 05:32:35 +00:00
ompi_check_tm.m4 Fix two errors with r14552: 2007-05-08 02:24:27 +00:00
ompi_check_udapl.m4 Clean up a couple of issues with some of the configure tests: 2007-05-01 04:40:31 +00:00
ompi_check_vendor.m4 Correct the CRAY define (here is a interesting webpage with all the compilers defines 2006-03-30 00:20:43 +00:00
ompi_check_visibility.m4 Use the AC_PROG_GREP available in AC 2.60 and later. This works around 2007-06-01 02:31:15 +00:00
ompi_check_xcpu.m4 update xcpu autoconfig checks for libxcpu and friends 2006-12-20 22:56:25 +00:00
ompi_check_xgrid.m4 Configure changes... woopie... 2006-11-30 01:59:44 +00:00
ompi_config_asm.m4 Use the AC_PROG_GREP available in AC 2.60 and later. This works around 2007-06-01 02:31:15 +00:00
ompi_config_pthreads.m4 Use the AC_PROG_GREP available in AC 2.60 and later. This works around 2007-06-01 02:31:15 +00:00
ompi_config_solaris_threads.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
ompi_config_subdir_args.m4 * add missing " that somehow slipped into the commit last night. 2006-05-31 13:57:38 +00:00
ompi_config_subdir.m4 * Fix shell quoting to be more consistent with what AC does 2006-05-31 03:40:26 +00:00
ompi_config_threads.m4 * properly enable threading support inside ptmalloc2=. Thanks to Tim for 2006-03-11 02:37:55 +00:00
ompi_configure_options.m4 Merging in the jjhursey-ft-cr-stable branch (r13912 : HEAD). 2007-03-16 23:11:45 +00:00
ompi_find_type.m4 The last of the Alpha fixes. The Alpha sh shell's builtin test doesn't 2006-09-28 03:45:27 +00:00
ompi_functions.m4 Allow Windows absolute prefix which start with a letter followed by : 2006-02-25 21:23:14 +00:00
ompi_get_libtool_linker_flags.m4 Escape $tmpCC, as it will have / in it in many cases, leading to a sed 2007-05-08 02:17:13 +00:00
ompi_get_version.m4 * Fix a small bug George noticed - if you change the prefix (or any of the 2006-03-12 04:35:01 +00:00
ompi_get_version.m4sh * Generate ompi_get_version.sh from ompi_get_version.m4, removing a bunch of 2006-01-21 22:53:16 +00:00
ompi_lang_link_with_c.m4 Configure changes... woopie... 2006-11-30 01:59:44 +00:00
ompi_load_platform.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
ompi_make_stripped_flags.m4 Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
ompi_mca.m4 Use the AC_PROG_GREP available in AC 2.60 and later. This works around 2007-06-01 02:31:15 +00:00
ompi_microsoft.m4 Fix a number of places where we can cause errors in configure if CFLAGS / 2006-09-22 23:58:23 +00:00
ompi_save_version.m4 Let's try this again, this time with less suck. 2006-03-12 17:56:58 +00:00
ompi_setup_cc.m4 - Check for attributes, after C and C++ have been set up. 2007-02-08 13:34:44 +00:00
ompi_setup_cxx.m4 Configure changes... woopie... 2006-11-30 01:59:44 +00:00
ompi_setup_f77.m4 Configure changes... woopie... 2006-11-30 01:59:44 +00:00
ompi_setup_f90.m4 For modern MACOSX_DEPLOYMENT_TARGETs, allow the Fortran 90 bindings to be 2007-06-05 04:04:44 +00:00
ompi_setup_libevent.m4 Fix a number of places where we can cause errors in configure if CFLAGS / 2006-09-22 23:58:23 +00:00
ompi_setup_wrappers.m4 Include the C++ bindings from mpi.h in a way that doesn't require an extra 2007-06-05 01:42:47 +00:00
ompi_try_assemble.m4 * Fix small issues when using an assembler directly, rather than through 2005-12-20 00:49:59 +00:00